X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;h=01ae01aa61ded92feb2ce100d54bba3775188124;hp=fe650f36a083a81d08991bf1a6b18c85baccd098;hb=d0d8f9aa03e9df3ca61b8c823678e5c3a9640a4d;hpb=48f1b16da05a3c5fdabd191e9b765ae812e8b488 diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index fe650f3..01ae01a 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -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;