2011-03-05
2011-03-05 21:52:16 by Martin Stjernholm <mast@lysator.liu.se>
-
8a9d73bec798ad9875de8ae5f7460ec2d740c1fe
(7 lines)
(+7/-0)
[
Show
| Annotate
]
Branch: 7.8
Disabled an unsafe optimization.
1854: Inside #if defined(PIKE_DEBUG)
if(!first_arg || !second_arg)
Pike_fatal("Couldn't find argument!\n");
#endif
+
+ #if 0
+ /* Disabled these - boolean falsehood is not the same thing as
+ * equality with the integer 0. */
+
if(node_is_false(*first_arg) && !node_may_overload(*second_arg,LFUN_EQ))
{
ret=*second_arg;
1867:
ADD_NODE_REF(*first_arg);
return mkopernode("`!",ret,0);
}
+ #endif
if (((*second_arg)->token == F_CONSTANT) &&
((*second_arg)->u.sval.type == T_STRING) &&