summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-30 20:33:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-30 20:33:45 (GMT)
commite52ace05d39636e857f167ed51382cbfbbd22687 (patch)
tree211903eab3d92a4e261eac879dcf6c48d64ad5c7 /generic/tclExecute.c
parent047122995db63a48e068e04717d715acfea1c0a3 (diff)
downloadtcl-e52ace05d39636e857f167ed51382cbfbbd22687.zip
tcl-e52ace05d39636e857f167ed51382cbfbbd22687.tar.gz
tcl-e52ace05d39636e857f167ed51382cbfbbd22687.tar.bz2
Change mp_isodd() (back) from libtommath stub entry to macro. libtommath changed it back to macro too in its master branch, we better do the same.
Better usage of mp_isneg() macro, in stead of directly comparing sign with MP_NEG/MP_ZPOS.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 9b3fb9e..6394eea 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -8497,7 +8497,7 @@ ExecuteExtendedBinaryMathOp(
Tcl_TakeBignumFromObj(NULL, value2Ptr, &big2);
/* TODO: internals intrusion */
- if ((w1 > ((Tcl_WideInt) 0)) ^ (big2.sign == MP_ZPOS)) {
+ if ((w1 > ((Tcl_WideInt) 0)) ^ !mp_isneg(&big2)) {
/*
* Arguments are opposite sign; remainder is sum.
*/