summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-09 19:39:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-09 19:39:23 (GMT)
commitac7ef03d8e108d7c755c1f560808429d0f4a0ce2 (patch)
treedab615d190e9cdcbefb5d6930c00b1c749d37f83 /generic/tclExecute.c
parent89dd0dcb93da6f2bedd50f7cf5f78502281ddf77 (diff)
parent3160edd84157a0015c5a24607b70561077dbb55a (diff)
downloadtcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.zip
tcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.tar.gz
tcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.tar.bz2
Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 1bcedff..bd73270 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -8072,7 +8072,7 @@ ExecuteExtendedBinaryMathOp(
* Arguments are opposite sign; remainder is sum.
*/
- TclBNInitBignumFromWideInt(&big1, w1);
+ mp_init_ll(&big1, w1);
mp_add(&big2, &big1, &big2);
mp_clear(&big1);
BIG_RESULT(&big2);
@@ -8701,7 +8701,7 @@ ExecuteExtendedUnaryMathOp(
if (w != WIDE_MIN) {
WIDE_RESULT(-w);
}
- TclBNInitBignumFromWideInt(&big, w);
+ mp_init_ll(&big, w);
break;
default:
Tcl_TakeBignumFromObj(NULL, valuePtr, &big);