fix constant folding for |

This commit is contained in:
Bill Currie 2001-07-19 03:00:35 +00:00
parent 09ae07f64e
commit 00d409e80c

View file

@ -426,7 +426,7 @@ do_op_float (int op, expr_t *e1, expr_t *e2)
e1->e.float_val = (int)f1 & (int)f2;
break;
case '|':
e1->e.float_val += (int)f1 | (int)f2;
e1->e.float_val = (int)f1 | (int)f2;
break;
case AND:
e1->e.float_val = f1 && f2;