Skip to content

Commit 23c3348

Browse files
committed
Fixed clang warnings
1 parent 3a72fa8 commit 23c3348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/utest/bits.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ UTEST_BEGIN("common", bits)
7373
{
7474
printf("Testing int_log2 for %s...\n", label);
7575

76-
int log2 = int_log2(T(0));
76+
int log2 = int(int_log2(T(0)));
7777
UTEST_ASSERT_MSG(log2 == 0, "%s: zero input detected as %d", label, log2);
7878

7979
for (int i=0; i<int(sizeof(T)*8); ++i)
8080
{
8181
T x = T(1) << i;
82-
int y = int_log2(x);
82+
int y = int(int_log2(x));
8383
UTEST_ASSERT_MSG(y == i, "%s: bit=%d but detected as %d", label, i, y);
8484
}
8585
}

0 commit comments

Comments
 (0)