summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-09-14 16:30:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-09-14 16:30:12 (GMT)
commit72ca043b8b5b4a0566d50924e6151e319a990112 (patch)
treeaa03bf7380c5f7ab2f8a4a11b6aafc2519c68541 /generic/tclObj.c
parent3d824b43c9adb2572dcf1548e12e4b31f284cbbc (diff)
downloadtcl-72ca043b8b5b4a0566d50924e6151e319a990112.zip
tcl-72ca043b8b5b4a0566d50924e6151e319a990112.tar.gz
tcl-72ca043b8b5b4a0566d50924e6151e319a990112.tar.bz2
* generic/tclObj.c (Tcl_GetIntFromObj): Corrected flaw in returning
the int value of a wideInteger. [Bug 1027690]
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index baed8fb..8394f46 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.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: tclObj.c,v 1.42.2.7 2004/09/10 22:59:54 dgp Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.42.2.8 2004/09/14 16:30:32 dgp Exp $
*/
#include "tclInt.h"
@@ -1795,7 +1795,7 @@ Tcl_GetIntFromObj(interp, objPtr, intPtr)
}
if (((long)((int)l)) == l) {
- *intPtr = (int)objPtr->internalRep.longValue;
+ *intPtr = (int)l;
return TCL_OK;
}
#ifndef TCL_WIDE_INT_IS_LONG