summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-10-13 21:45:29 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-10-13 21:45:29 (GMT)
commitcf541422fb79598c06dc645ab7d81b3635dbec08 (patch)
treedd93e3b7e7385c094dc9b69337f67e1f9d162feb /generic/tclCmdAH.c
parent963118c8e4cb8d89817df6440f744c07d99c0784 (diff)
downloadtcl-cf541422fb79598c06dc645ab7d81b3635dbec08.zip
tcl-cf541422fb79598c06dc645ab7d81b3635dbec08.tar.gz
tcl-cf541422fb79598c06dc645ab7d81b3635dbec08.tar.bz2
Fix [Bug 1284178] and tweak tests to accommodate.
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)