summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-21 15:49:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-21 15:49:45 (GMT)
commit28deb99f386df3eb58792a8f7785860868d24d3d (patch)
treeab1edf78353b73cb004acf67949925bd582fe18a
parentbcb74eb9c3f377874729c7a81aee5568afd2f0bb (diff)
downloadtcl-28deb99f386df3eb58792a8f7785860868d24d3d.zip
tcl-28deb99f386df3eb58792a8f7785860868d24d3d.tar.gz
tcl-28deb99f386df3eb58792a8f7785860868d24d3d.tar.bz2
Tcl_GetDoubleFromObj now avoids shimmering away a "wideInt" intrep.
-rw-r--r--ChangeLog1
-rw-r--r--generic/tclObj.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5de769c..cbf5ed9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
to parse leading signs. All of them do, and if any are detected
that do not, the correct fix is replacement with compat/strtoul*.c,
not a lot of special care by the callers.
+ Tcl_GetDoubleFromObj now avoids shimmering away a "wideInt" intrep.
2005-04-20 Don Porter <dgp@users.sourceforge.net>
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 625e70a..4c6b448 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.77 2005/04/21 15:23:10 dgp Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.78 2005/04/21 15:49:47 dgp Exp $
*/
#include "tclInt.h"
@@ -1711,6 +1711,9 @@ Tcl_GetDoubleFromObj(interp, objPtr, dblPtr)
} else if (objPtr->typePtr == &tclIntType) {
*dblPtr = objPtr->internalRep.longValue;
return TCL_OK;
+ } else if (objPtr->typePtr == &tclWideIntType) {
+ *dblPtr = objPtr->internalRep.wideValue;
+ return TCL_OK;
}
result = SetDoubleFromAny(interp, objPtr);