From 50b0a354942d925ea70c7a13297ddeafa9adc12a Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Tue, 12 Sep 2023 09:30:44 +0100 Subject: [PATCH] Test INT_MAX rather than UINT_MAX Signed-off-by: Dave Rodgman --- library/constant_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/constant_time.c b/library/constant_time.c index 371264347a..d1d06e088a 100644 --- a/library/constant_time.c +++ b/library/constant_time.c @@ -122,7 +122,7 @@ int mbedtls_ct_memcmp(const void *a, } -#if (UINT_MAX < UINT32_MAX) +#if (INT_MAX < INT32_MAX) /* We don't support int smaller than 32-bits, but if someone tried to build * with this configuration, there is a risk that, for differing data, the * only bits set in diff are in the top 16-bits, and would be lost by a