summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathInterface.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-05-14 18:42:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-05-14 18:42:59 (GMT)
commit8094d33e4331c3f61d015b91018908fa6fb60b96 (patch)
treeb5d2417771b80a199ad0cd55f85480951fa55404 /generic/tclTomMathInterface.c
parent95d2a7f7c08f468c9d9dbfed451dd3bad2a37129 (diff)
downloadtcl-8094d33e4331c3f61d015b91018908fa6fb60b96.zip
tcl-8094d33e4331c3f61d015b91018908fa6fb60b96.tar.gz
tcl-8094d33e4331c3f61d015b91018908fa6fb60b96.tar.bz2
DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future libtommath versions. So, better stop using it at all.
Also add some other defines/typdefs for future libtommath compatibility.
Diffstat (limited to 'generic/tclTomMathInterface.c')
-rw-r--r--generic/tclTomMathInterface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTomMathInterface.c b/generic/tclTomMathInterface.c
index 89c1132..0aa6793 100644
--- a/generic/tclTomMathInterface.c
+++ b/generic/tclTomMathInterface.c
@@ -196,7 +196,7 @@ TclBNInitBignumFromLong(
*/
status = mp_init_size(a,
- (CHAR_BIT * sizeof(long) + DIGIT_BIT - 1) / DIGIT_BIT);
+ (CHAR_BIT * sizeof(long) + MP_DIGIT_BIT - 1) / MP_DIGIT_BIT);
if (status != MP_OKAY) {
Tcl_Panic("initialization failure in TclBNInitBignumFromLong");
}
@@ -283,7 +283,7 @@ TclBNInitBignumFromWideUInt(
*/
status = mp_init_size(a,
- (CHAR_BIT * sizeof(Tcl_WideUInt) + DIGIT_BIT - 1) / DIGIT_BIT);
+ (CHAR_BIT * sizeof(Tcl_WideUInt) + MP_DIGIT_BIT - 1) / MP_DIGIT_BIT);
if (status != MP_OKAY) {
Tcl_Panic("initialization failure in TclBNInitBignumFromWideUInt");
}