diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-13 10:14:31 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-13 10:14:31 (GMT) |
| commit | c659b044b1e05ff3f4bcd0a94b01b3d2611c251c (patch) | |
| tree | 6461d7a562bf2e681c2cf49147418c2349f58c07 /generic/tclBasic.c | |
| parent | 3e55dbb18cf086d34207ca2e744ecea04cc67b38 (diff) | |
| download | tcl-c659b044b1e05ff3f4bcd0a94b01b3d2611c251c.zip tcl-c659b044b1e05ff3f4bcd0a94b01b3d2611c251c.tar.gz tcl-c659b044b1e05ff3f4bcd0a94b01b3d2611c251c.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.c | 4 |
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)); |
