diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-10-13 21:45:29 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-10-13 21:45:29 (GMT) |
commit | 06be524fb096bbdcf2eb156ca47dfd09cdf92fbe (patch) | |
tree | dd93e3b7e7385c094dc9b69337f67e1f9d162feb /generic | |
parent | 298c91d0d2026e4bfb0630d0cee9bfbb1f73e760 (diff) | |
download | tcl-06be524fb096bbdcf2eb156ca47dfd09cdf92fbe.zip tcl-06be524fb096bbdcf2eb156ca47dfd09cdf92fbe.tar.gz tcl-06be524fb096bbdcf2eb156ca47dfd09cdf92fbe.tar.bz2 |
Fix [Bug 1284178] and tweak tests to accommodate.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdAH.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 545af15..aaf37ac 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.27.2.13 2005/07/05 21:18:23 dgp Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.27.2.14 2005/10/13 21:45:32 dkf Exp $ */ #include "tclInt.h" @@ -2195,7 +2195,11 @@ Tcl_FormatObjCmd(dummy, interp, objc, objv) } if (Tcl_GetLongFromObj(interp, /* INTL: Tcl source. */ objv[objIndex], &intValue) != TCL_OK) { - goto fmtError; + if (Tcl_GetWideIntFromObj(interp, /* INTL: Tcl source. */ + objv[objIndex], &wideValue) != TCL_OK) { + goto fmtError; + } + intValue = Tcl_WideAsLong(wideValue); } #if (LONG_MAX > INT_MAX) |