diff options
| author | Kevin B Kenny <kennykb@acm.org> | 2004-10-27 15:39:11 (GMT) |
|---|---|---|
| committer | Kevin B Kenny <kennykb@acm.org> | 2004-10-27 15:39:11 (GMT) |
| commit | f86d1cb4912d7ad6706ba918f7fcc9d1da720baf (patch) | |
| tree | 9edf4167cc20c7609343bf8cb87d71e5789b4249 /generic/tclObj.c | |
| parent | b9ebc9e90f360e1b0a61da51ca90ceb7390ea3ad (diff) | |
| download | tcl-f86d1cb4912d7ad6706ba918f7fcc9d1da720baf.zip tcl-f86d1cb4912d7ad6706ba918f7fcc9d1da720baf.tar.gz tcl-f86d1cb4912d7ad6706ba918f7fcc9d1da720baf.tar.bz2 | |
backport fixes for 868489 and 1026125
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. |
