summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-12-10 03:27:03 (GMT)
committerhobbs <hobbs>2000-12-10 03:27:03 (GMT)
commit19df5d993a9f6e55e773ea93d3632c770756358b (patch)
tree356d403af78a0aaa4cd9064443774a4a01293876 /generic
parent962aca72428dc6b21ed4f7a0af3a50aa368f0d31 (diff)
downloadtcl-19df5d993a9f6e55e773ea93d3632c770756358b.zip
tcl-19df5d993a9f6e55e773ea93d3632c770756358b.tar.gz
tcl-19df5d993a9f6e55e773ea93d3632c770756358b.tar.bz2
* docs/scan.n:
* tests/scan.test: * generic/tclScan.c (Tcl_ScanObjCmd): changed %o and %x to use strtoul instead of strtol to correctly preserve scan<>format conversion of large integers. [Patch #102663, Bug #124600]
Diffstat (limited to 'generic')
-rw-r--r--generic/tclScan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c
index bf238cf..2cd48d4 100644
--- a/generic/tclScan.c
+++ b/generic/tclScan.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclScan.c,v 1.6 1999/11/30 01:42:59 hobbs Exp $
+ * RCS: @(#) $Id: tclScan.c,v 1.7 2000/12/10 03:27:04 hobbs Exp $
*/
#include "tclInt.h"
@@ -694,12 +694,12 @@ Tcl_ScanObjCmd(dummy, interp, objc, objv)
case 'o':
op = 'i';
base = 8;
- fn = (long (*)())strtol;
+ fn = (long (*)())strtoul;
break;
case 'x':
op = 'i';
base = 16;
- fn = (long (*)())strtol;
+ fn = (long (*)())strtoul;
break;
case 'u':
op = 'i';