From 99bb3c0f9ff03fbb7ea7bcfdb33e9562bbf59365 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Wed, 13 Sep 2023 12:31:21 +0000 Subject: Don't use int16_t, pre-C99 --- libtommath/tommath_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h index 637ba7f..206d5eb 100644 --- a/libtommath/tommath_private.h +++ b/libtommath/tommath_private.h @@ -244,7 +244,7 @@ MP_DEPRECATED(s_mp_reverse) void bn_reverse(unsigned char *s, int len); #define MP_GET_ENDIANNESS(x) \ do{\ - int16_t n = 0x1; \ + short n = 0x1; \ char *p = (char *)&n; \ x = (p[0] == '\x01') ? MP_LITTLE_ENDIAN : MP_BIG_ENDIAN; \ } while (0) -- cgit v0.12