summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-03-19 18:33:51 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-03-19 18:33:51 (GMT)
commit2e5d5696ba21142b2af832196c9428971bc198c8 (patch)
treeac851f22aa1fdc090d2c9af4d6bf279a072ab214 /generic/tclObj.c
parent5ae57fc1b695b72d90d0b098b8f514621ff7e3ed (diff)
downloadtcl-2e5d5696ba21142b2af832196c9428971bc198c8.zip
tcl-2e5d5696ba21142b2af832196c9428971bc198c8.tar.gz
tcl-2e5d5696ba21142b2af832196c9428971bc198c8.tar.bz2
Made HEAD build on Windows VC++ again.
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 8e21743..e2d6056 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.54 2004/01/28 23:56:59 dkf Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.55 2004/03/19 18:33:52 kennykb Exp $
*/
#include "tclInt.h"
@@ -1592,6 +1592,8 @@ Tcl_GetDoubleFromObj(interp, objPtr, dblPtr)
if (objPtr->typePtr == &tclDoubleType) {
*dblPtr = objPtr->internalRep.doubleValue;
return TCL_OK;
+ } else if ( objPtr->typePtr == &tclIntType ) {
+ *dblPtr = objPtr->internalRep.longValue;
}
result = SetDoubleFromAny(interp, objPtr);