it is not required that ht->t.size >= ht->min_table_size anymore
[urcu.git] / tests / test_urcu_hash.c
index fe650f36a083a81d08991bf1a6b18c85baccd098..01ae01aa61ded92feb2ce100d54bba3775188124 100644 (file)
@@ -896,7 +896,7 @@ int main(int argc, char **argv)
                return -1;
        }
 
-       if (min_hash_alloc_size && min_hash_alloc_size * (min_hash_alloc_size - 1)) {
+       if (min_hash_alloc_size && min_hash_alloc_size & (min_hash_alloc_size - 1)) {
                printf("Error: Min hash alloc size %lu is not a power of 2.\n",
                        min_hash_alloc_size);
                return -1;
This page took 0.022957 seconds and 4 git commands to generate.