From d54cb83584c1702de390f62e5eabbd435e6e56c7 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Wed, 19 Apr 2023 18:38:54 +0100 Subject: [PATCH] Fix tests Signed-off-by: Dave Rodgman --- tests/suites/test_suite_bignum_core.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_bignum_core.function b/tests/suites/test_suite_bignum_core.function index d80054c23..a832a5123 100644 --- a/tests/suites/test_suite_bignum_core.function +++ b/tests/suites/test_suite_bignum_core.function @@ -331,10 +331,10 @@ void mpi_core_clz(int lz, int tz) if ((lz + tz) > 0) { // some zero bits uint32_t s = (sizeof(mbedtls_mpi_uint) * 8 - lz - tz); - x = ((1ULL << s) - 1) << tz; + x = ((((mbedtls_mpi_uint) 1) << s) - 1) << tz; } else { // all bits set - x = ~0ULL; + x = ~((mbedtls_mpi_uint) 0); } }