[cig-commits] commit: Adding an (int) type-cast as the value is being compared to an (int) data.

Mercurial hg at geodynamics.org
Tue Mar 23 10:35:03 PDT 2010


changeset:   780:c87feb1d8f85
branch:      1.4.x
user:        JericoRevote
date:        Thu Feb 18 15:47:16 2010 +1100
files:       Base/Container/tests/HashTableSuite.c
description:
Adding an (int) type-cast as the value is being compared to an (int) data.


diff -r 3622eccd945f -r c87feb1d8f85 Base/Container/tests/HashTableSuite.c
--- a/Base/Container/tests/HashTableSuite.c	Thu Feb 18 11:50:52 2010 +1100
+++ b/Base/Container/tests/HashTableSuite.c	Thu Feb 18 15:47:16 2010 +1100
@@ -223,7 +223,7 @@ void HashTableSuite_TestInsertPointers( 
    /* This is a basic check that the number of collisions was within reason. Perhaps a stricter
     *  mathematical calc should really be performed here */
    /* Hash table has 255 places, only inserted 100 entries, therefore not many collisions expected */
-   pcu_check_true( sum <= (data->ptrTable->count * 0.3) );
+   pcu_check_true( sum <= (int)(data->ptrTable->count * 0.3) );
    
    /* Now parse the tree, and check the actual entries - note they won't necessarily be in same 'order'
     * while being parsed */



More information about the CIG-COMMITS mailing list