ref: 560dd3edc56c0a0baf08804246e57fb8006d3a87
parent: f71c7191e4e1498955910bf1db4525343eaeb073
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Aug 14 14:56:07 EDT 2015
Fix exp2cond() negation of the condition The code was written for an anciant version of the values of OEQ and ONE.
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -567,7 +567,7 @@
np = decay(np);
if (isnodecmp(np->op))
return (neg) ? negate(np) : np;
- return compare(ONE ^ neg, np, constnode(zero));
+ return compare((neg) ? OEQ : ONE, np, constnode(zero));
}
static Node *