Patch: fix warning regression in java/parse.y
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Wed Oct 9 10:48:00 GMT 2002
Fixes:
> java/parse.y:13780: warning: suggest parentheses around arithmetic in operand of |
This regressed within the last couple of days.
Tested on sparc-sun-solaris2.7, there were no java regressions.
Ok to install?
Thanks,
--Kaveh
2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* parse.y (merge_string_cste): Add parentheses around & within |.
diff -rup orig/egcc-CVS20021008/gcc/java/parse.y egcc-CVS20021008/gcc/java/parse.y
--- orig/egcc-CVS20021008/gcc/java/parse.y 2002-10-08 16:00:22.000000000 -0400
+++ egcc-CVS20021008/gcc/java/parse.y 2002-10-09 10:19:25.410585076 -0400
@@ -13777,7 +13777,7 @@ merge_string_cste (op1, op2, after)
else
{
*p++ = c >> 6 | 0xc0;
- *p++ = c & 0x3f | 0x80;
+ *p++ = (c & 0x3f) | 0x80;
}
*p = '\0';
More information about the Java-patches
mailing list