summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-09-27 19:59:31 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-09-27 19:59:31 (GMT)
commit5ae4e609229f4f6627a9d5d6e3a9aad6b61fbbec (patch)
tree485242b3b8ea8dd14322c4f42a8f3e9acaf350c8 /generic/tclCmdAH.c
parent6221ab7a6f6578462654bc7ab0b8e16a329ee2c4 (diff)
downloadtcl-5ae4e609229f4f6627a9d5d6e3a9aad6b61fbbec.zip
tcl-5ae4e609229f4f6627a9d5d6e3a9aad6b61fbbec.tar.gz
tcl-5ae4e609229f4f6627a9d5d6e3a9aad6b61fbbec.tar.bz2
removed some workarounds for Bug 868489
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r--generic/tclCmdAH.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index fdcdac5..b1c1177 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.48 2004/09/23 15:20:52 dgp Exp $
+ * RCS: @(#) $Id: tclCmdAH.c,v 1.49 2004/09/27 19:59:36 kennykb Exp $
*/
#include "tclInt.h"
@@ -2229,18 +2229,7 @@ Tcl_FormatObjCmd(dummy, interp, objc, objv)
size = 40 + precision;
break;
}
- if (objv[objIndex]->typePtr == &tclWideIntType) {
- /* Operation won't fail; we're typed! */
- Tcl_GetWideIntFromObj(NULL, objv[objIndex], &wideValue);
- if (wideValue>ULONG_MAX || wideValue<LONG_MIN) {
- /*
- * Value too big for type. Generate an error;
- */
- Tcl_GetLongFromObj(interp, objv[objIndex], &intValue);
- goto fmtError;
- }
- intValue = Tcl_WideAsLong(wideValue);
- } else if (Tcl_GetLongFromObj(interp, /* INTL: Tcl source. */
+ if (Tcl_GetLongFromObj(interp, /* INTL: Tcl source. */
objv[objIndex], &intValue) != TCL_OK) {
goto fmtError;
}