diff options
author | kennykb <kennykb@noemail.net> | 2004-10-27 15:39:11 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2004-10-27 15:39:11 (GMT) |
commit | 6cea964805272fed7aca9bb936bc6d34292a5ad4 (patch) | |
tree | 9edf4167cc20c7609343bf8cb87d71e5789b4249 /generic/tclObj.c | |
parent | d20465b6debfc29faac6251cf27bd97f8ada9ee5 (diff) | |
download | tcl-6cea964805272fed7aca9bb936bc6d34292a5ad4.zip tcl-6cea964805272fed7aca9bb936bc6d34292a5ad4.tar.gz tcl-6cea964805272fed7aca9bb936bc6d34292a5ad4.tar.bz2 |
backport fixes for 868489 and 1026125
FossilOrigin-Name: eb071c665a5aa86897f8429c4e68b0ac59204462
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index 8394f46..9c34908 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.8 2004/09/14 16:30:32 dgp Exp $ + * RCS: @(#) $Id: tclObj.c,v 1.42.2.9 2004/10/27 15:39:36 kennykb Exp $ */ #include "tclInt.h" @@ -1118,11 +1118,7 @@ SetBooleanFromAny(interp, objPtr) } else if (objPtr->typePtr == &tclDoubleType) { newBool = (objPtr->internalRep.doubleValue != 0.0); } else if (objPtr->typePtr == &tclWideIntType) { -#ifdef TCL_WIDE_INT_IS_LONG - newBool = (objPtr->internalRep.longValue != 0); -#else /* !TCL_WIDE_INT_IS_LONG */ - newBool = (objPtr->internalRep.wideValue != Tcl_LongAsWide(0)); -#endif /* TCL_WIDE_INT_IS_LONG */ + newBool = (objPtr->internalRep.wideValue != 0); } else { /* * Copy the string converting its characters to lower case. |