summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-25 02:08:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-25 02:08:22 (GMT)
commitb6308600f2601f45bcc6707cda402c5b14087d2a (patch)
tree4a4655c55b20bcd85dda31acd27fc0a644112f56 /generic/tclObj.c
parent565c9e08a15e4186207fa98a62276aefbc40f62a (diff)
downloadtcl-b6308600f2601f45bcc6707cda402c5b14087d2a.zip
tcl-b6308600f2601f45bcc6707cda402c5b14087d2a.tar.gz
tcl-b6308600f2601f45bcc6707cda402c5b14087d2a.tar.bz2
silence compiler warnings
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 bc073c2..1b25e16 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.81 2005/04/22 15:46:59 dgp Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.82 2005/04/25 02:08:34 dgp Exp $
*/
#include "tclInt.h"
@@ -1677,7 +1677,7 @@ Tcl_GetDoubleFromObj(interp, objPtr, dblPtr)
*dblPtr = objPtr->internalRep.longValue;
return TCL_OK;
} else if (objPtr->typePtr == &tclWideIntType) {
- *dblPtr = objPtr->internalRep.wideValue;
+ *dblPtr = (double) objPtr->internalRep.wideValue;
return TCL_OK;
}