diff options
author | dgp <dgp@users.sourceforge.net> | 2005-04-21 20:35:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-04-21 20:35:04 (GMT) |
commit | 591b695d3ea4106aca1325ae5b7b523c55a826bf (patch) | |
tree | bfea81562035fdd74f1a3f530450e9061ebce0e3 /generic/tclObj.c | |
parent | 713419b2244c57466ead6674b4c9d30c54dc60d8 (diff) | |
download | tcl-591b695d3ea4106aca1325ae5b7b523c55a826bf.zip tcl-591b695d3ea4106aca1325ae5b7b523c55a826bf.tar.gz tcl-591b695d3ea4106aca1325ae5b7b523c55a826bf.tar.bz2 |
stifle compiler warning
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index 96d5227..42acb01 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.79 2005/04/21 20:24:13 dgp Exp $ + * RCS: @(#) $Id: tclObj.c,v 1.80 2005/04/21 20:35:04 dgp Exp $ */ #include "tclInt.h" @@ -1299,7 +1299,6 @@ TclGetTruthValueFromObj(interp, objPtr, boolPtr) { double d; long l; - Tcl_WideInt w; /* * The following call retrieves a numeric value without shimmering @@ -1318,13 +1317,16 @@ TclGetTruthValueFromObj(interp, objPtr, boolPtr) return TCL_OK; } #ifndef TCL_WIDE_INT_IS_LONG - /* - * ...then a wide. Check in that order so that we don't promote - * anything to wide unnecessarily. - */ - if (Tcl_GetWideIntFromObj(NULL, objPtr, &w) == TCL_OK) { - *boolPtr = (w != 0); - return TCL_OK; + else { + Tcl_WideInt w; + /* + * ...then a wide. Check in that order so that we don't promote + * anything to wide unnecessarily. + */ + if (Tcl_GetWideIntFromObj(NULL, objPtr, &w) == TCL_OK) { + *boolPtr = (w != 0); + return TCL_OK; + } } #endif /* |