summaryrefslogtreecommitdiffstats
path: root/generic/tclParseExpr.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2002-02-15 14:28:46 (GMT)
committerdkf <dkf@noemail.net>2002-02-15 14:28:46 (GMT)
commit76f21db3e4ff07d10bc0f4fb6b55feb05b67247a (patch)
treeedaf81ee6d40edeacc9f3e2093ddcb2ba302c620 /generic/tclParseExpr.c
parent128a1ec632cd69ee32ae5bb3095470002b277211 (diff)
downloadtcl-76f21db3e4ff07d10bc0f4fb6b55feb05b67247a.zip
tcl-76f21db3e4ff07d10bc0f4fb6b55feb05b67247a.tar.gz
tcl-76f21db3e4ff07d10bc0f4fb6b55feb05b67247a.tar.bz2
TIP#72 implementation. See ChangeLog for details.
This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode. FossilOrigin-Name: 8d82de1905ada4c5d06f5fb967721e8b681b7c82
Diffstat (limited to 'generic/tclParseExpr.c')
-rw-r--r--generic/tclParseExpr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclParseExpr.c b/generic/tclParseExpr.c
index defdecf..f7d0428 100644
--- a/generic/tclParseExpr.c
+++ b/generic/tclParseExpr.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclParseExpr.c,v 1.11 2001/12/06 10:59:17 dkf Exp $
+ * RCS: @(#) $Id: tclParseExpr.c,v 1.12 2002/02/15 14:28:49 dkf Exp $
*/
#include "tclInt.h"
@@ -1579,7 +1579,11 @@ GetLexeme(infoPtr)
startsWithDigit = isdigit(UCHAR(c)); /* INTL: digit */
if (startsWithDigit && TclLooksLikeInt(src, -1)) {
errno = 0;
+#ifdef TCL_WIDE_INT_IS_LONG
(void) strtoul(src, &termPtr, 0);
+#else
+ (void) strtoull(src, &termPtr, 0);
+#endif
if (errno == ERANGE) {
if (interp != NULL) {
char *s = "integer value too large to represent";