summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-13 12:35:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-13 12:35:23 (GMT)
commitc680b512712f771397cc19a9871a52f3fe316a9c (patch)
tree0e2b9fcd09aa774c6611f5e2c3850ded04fc8558 /libtommath
parent433d5616f81c916b947a362a6a7a7ee847024364 (diff)
parent99bb3c0f9ff03fbb7ea7bcfdb33e9562bbf59365 (diff)
downloadtcl-c680b512712f771397cc19a9871a52f3fe316a9c.zip
tcl-c680b512712f771397cc19a9871a52f3fe316a9c.tar.gz
tcl-c680b512712f771397cc19a9871a52f3fe316a9c.tar.bz2
Fix [a1f11d96b8]: VC6 compilation error of core-8-6-branch: error C2065: 'int16_t' : undeclared identifier
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/tommath_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index 654d294..41d1ea2 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -246,7 +246,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)