diff options
Diffstat (limited to 'tests/utils')
-rw-r--r-- | tests/utils/utils_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils/utils_test.c b/tests/utils/utils_test.c index cb4e476c..84964f57 100644 --- a/tests/utils/utils_test.c +++ b/tests/utils/utils_test.c @@ -439,7 +439,7 @@ static void isqrt_test(void) x = r * (UINT16_MAX/RAND_MAX); else x = r; - uint32_t sq = x*x; + uint32_t sq = (uint32_t)x*x; uint32_t y = osmo_isqrt32(sq); if (y != x) printf("ERROR: x=%u, sq=%u, osmo_isqrt(%u) = %u\n", x, sq, sq, y); |