summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-13 10:14:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-13 10:14:31 (GMT)
commit9d6ae5462247cf6c5ce043e4689c3e5210628e93 (patch)
tree6461d7a562bf2e681c2cf49147418c2349f58c07 /generic/tclBasic.c
parentb9e8eecd80020e9dc1539f6f99f121472aff3126 (diff)
downloadtcl-9d6ae5462247cf6c5ce043e4689c3e5210628e93.zip
tcl-9d6ae5462247cf6c5ce043e4689c3e5210628e93.tar.gz
tcl-9d6ae5462247cf6c5ce043e4689c3e5210628e93.tar.bz2
Make mp_get_long and mp_set_long available to tommath-enabled Tcl extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index cceef45..d4fa833 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -7460,7 +7460,7 @@ ExprAbsFunc(
}
goto unChanged;
} else if (l == LONG_MIN) {
- TclBNInitBignumFromLong(&big, l);
+ TclInitBignumFromLong(&big, l);
goto tooLarge;
}
Tcl_SetObjResult(interp, Tcl_NewLongObj(-l));
@@ -7495,7 +7495,7 @@ ExprAbsFunc(
goto unChanged;
}
if (w == LLONG_MIN) {
- TclBNInitBignumFromWideInt(&big, w);
+ TclInitBignumFromWideInt(&big, w);
goto tooLarge;
}
Tcl_SetObjResult(interp, Tcl_NewWideIntObj(-w));