Fix tests
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/tests/suites/test_suite_bignum_core.function b/tests/suites/test_suite_bignum_core.function
index d80054c..a832a51 100644
--- a/tests/suites/test_suite_bignum_core.function
+++ b/tests/suites/test_suite_bignum_core.function
@@ -331,10 +331,10 @@
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);
}
}