summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 21:56:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 21:56:52 (GMT)
commit3160edd84157a0015c5a24607b70561077dbb55a (patch)
tree075dded7057c87ab6c6114ff81e8b15da99c2e29 /generic/tclExecute.c
parent89dd0dcb93da6f2bedd50f7cf5f78502281ddf77 (diff)
downloadtcl-3160edd84157a0015c5a24607b70561077dbb55a.zip
tcl-3160edd84157a0015c5a24607b70561077dbb55a.tar.gz
tcl-3160edd84157a0015c5a24607b70561077dbb55a.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);