diff options
author | dgp <dgp@users.sourceforge.net> | 2017-04-27 17:02:19 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-04-27 17:02:19 (GMT) |
commit | 9193b9fa6637a1eb6ad1e3ac0607b9a81d600daf (patch) | |
tree | ed24937f7abbee6153a7ee56f9a9208afea291ea /generic | |
parent | 15fb40c93c3ec771c84e531a7219b92add30ad4c (diff) | |
download | tcl-9193b9fa6637a1eb6ad1e3ac0607b9a81d600daf.zip tcl-9193b9fa6637a1eb6ad1e3ac0607b9a81d600daf.tar.gz tcl-9193b9fa6637a1eb6ad1e3ac0607b9a81d600daf.tar.bz2 |
[04e26c02c0] Remove useless condition that raises warnings.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclExecute.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 608b420..e85863d 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -363,9 +363,7 @@ VarHashCreateVar( : (*(tPtr) = TCL_NUMBER_DOUBLE)), \ *(ptrPtr) = (ClientData) \ (&((objPtr)->internalRep.doubleValue)), TCL_OK) : \ - ((((objPtr)->typePtr == NULL) && ((objPtr)->bytes == NULL)) || \ - (((objPtr)->bytes != NULL) && ((objPtr)->length == 0))) \ - ? TCL_ERROR : \ + (((objPtr)->bytes != NULL) && ((objPtr)->length == 0))? TCL_ERROR : \ TclGetNumberFromObj((interp), (objPtr), (ptrPtr), (tPtr))) #else @@ -385,9 +383,7 @@ VarHashCreateVar( : (*(tPtr) = TCL_NUMBER_DOUBLE)), \ *(ptrPtr) = (ClientData) \ (&((objPtr)->internalRep.doubleValue)), TCL_OK) : \ - ((((objPtr)->typePtr == NULL) && ((objPtr)->bytes == NULL)) || \ - (((objPtr)->bytes != NULL) && ((objPtr)->length == 0))) \ - ? TCL_ERROR : \ + (((objPtr)->bytes != NULL) && ((objPtr)->length == 0))? TCL_ERROR : \ TclGetNumberFromObj((interp), (objPtr), (ptrPtr), (tPtr))) #endif |