summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2005-10-13 21:45:29 (GMT)
committerdkf <dkf@noemail.net>2005-10-13 21:45:29 (GMT)
commitd3581a60f299b8cd16a7ecf13e8421c8ce67e73f (patch)
treedd93e3b7e7385c094dc9b69337f67e1f9d162feb /generic/tclCmdAH.c
parent9fd021850e7b1717f8d52011cdb19990132dcfcb (diff)
downloadtcl-d3581a60f299b8cd16a7ecf13e8421c8ce67e73f.zip
tcl-d3581a60f299b8cd16a7ecf13e8421c8ce67e73f.tar.gz
tcl-d3581a60f299b8cd16a7ecf13e8421c8ce67e73f.tar.bz2
Fix [Bug 1284178] and tweak tests to accommodate.
FossilOrigin-Name: b41705eb6e842637c1238e3aa8c6dd0a243583ab
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r--generic/tclCmdAH.c8
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)