diff options
author | dgp <dgp@noemail.net> | 2004-09-14 16:30:12 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2004-09-14 16:30:12 (GMT) |
commit | ed7461db85b12759c3e0e4a92aa62db199338029 (patch) | |
tree | aa03bf7380c5f7ab2f8a4a11b6aafc2519c68541 | |
parent | 699a75ca695e555a9429a6c9a8933fe0a1b9aeff (diff) | |
download | tcl-ed7461db85b12759c3e0e4a92aa62db199338029.zip tcl-ed7461db85b12759c3e0e4a92aa62db199338029.tar.gz tcl-ed7461db85b12759c3e0e4a92aa62db199338029.tar.bz2 |
* generic/tclObj.c (Tcl_GetIntFromObj): Corrected flaw in returning
the int value of a wideInteger. [Bug 1027690]
FossilOrigin-Name: ecd2e927c512e32485be6f32d0f067e3030cfd5d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclObj.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2004-09-14 Don Porter <dgp@users.sourceforge.net> + + * generic/tclObj.c (Tcl_GetIntFromObj): Corrected flaw in returning + the int value of a wideInteger. [Bug 1027690] + 2004-09-10 Donal K. Fellows <donal.k.fellows@man.ac.uk> * generic/tclObj.c (SetIntOrWideFromAny): Rewritten integral value 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 |