summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-30 07:22:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-30 07:22:51 (GMT)
commit3f2b427970c3772d75c99a649bd0f73dd54d1bc1 (patch)
tree06f18d8a7ce704427fecb128b3a9ca0fec05a7a6 /libtommath
parentce1a0a923baddd44ece1c7f5d25f15d63d26a4aa (diff)
downloadtcl-3f2b427970c3772d75c99a649bd0f73dd54d1bc1.zip
tcl-3f2b427970c3772d75c99a649bd0f73dd54d1bc1.tar.gz
tcl-3f2b427970c3772d75c99a649bd0f73dd54d1bc1.tar.bz2
Eliminate some more instances of "long long", for VC++ 6.0
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/tommath_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index be8325b..fc7ac50 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -176,7 +176,7 @@ typedef private_mp_word mp_word;
#endif
/* Minimum number of available digits in mp_int, MP_PREC >= MP_MIN_PREC */
-#define MP_MIN_PREC ((((int)MP_SIZEOF_BITS(long long) + MP_DIGIT_BIT) - 1) / MP_DIGIT_BIT)
+#define MP_MIN_PREC ((((int)MP_SIZEOF_BITS(Tcl_WideInt) + MP_DIGIT_BIT) - 1) / MP_DIGIT_BIT)
MP_STATIC_ASSERT(prec_geq_min_prec, MP_PREC >= MP_MIN_PREC)
@@ -210,7 +210,7 @@ MP_PRIVATE mp_err s_mp_prime_is_divisible(const mp_int *a, mp_bool *result);
/* TODO: jenkins prng is not thread safe as of now */
MP_PRIVATE mp_err s_mp_rand_jenkins(void *p, size_t n) MP_WUR;
-MP_PRIVATE void s_mp_rand_jenkins_init(unsigned long long seed);
+MP_PRIVATE void s_mp_rand_jenkins_init(Tcl_WideUInt seed);
extern MP_PRIVATE const char *const mp_s_rmap;
extern MP_PRIVATE const unsigned char mp_s_rmap_reverse[];
@@ -289,7 +289,7 @@ MP_DEPRECATED(s_mp_reverse) void bn_reverse(unsigned char *s, int len);
#define MP_GET_SIGNED(type, name, mag) \
type name(const mp_int* a) \
{ \
- unsigned long long res = mag(a); \
+ Tcl_WideUInt res = mag(a); \
return (a->sign == MP_NEG) ? (type)-res : (type)res; \
}