Solaris 9 Sparc (deathstarii) Forte6 "/export/home/timeless/mozilla/nsprpub/lib/libc/src/strccmp.c", line 55: warning: initializer does not fit or is out of range: -128 warning repeats for values -128..-1.
Created attachment 131580 [details] [diff] [review] Use regular octal constants rather than character constants as initializers This patch avoids the type casts.
I checked in my patch on the NSPR trunk (NSPR 4.5) and NSPRPUB_PRE_4_2_CLIENT_BRANCH (Mozilla 1.6 alpha). timeless, thank you for tracking this down and suggesting a fix. Your fix also works, but I prefer a solution that doesn't use any type cast. (This is a matter of taste.)
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.