Closed Bug 552798 Opened 15 years ago Closed 15 years ago

Fix "warning: suggest parentheses around comparison in operand of &" in TestAToms.cpp

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a4

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

Attached patch fix (deleted) — Splinter Review
I get these compile warnings when building TestAtoms.cpp:
> xpcom/tests/TestAtoms.cpp: In function ‘PRBool TestAtoms::isStaticAtom(nsIAtom*)’:
> xpcom/tests/TestAtoms.cpp:190: warning: suggest parentheses around comparison in operand of &
> xpcom/tests/TestAtoms.cpp:191: warning: suggest parentheses around comparison in operand of &
> xpcom/tests/TestAtoms.cpp:192: warning: suggest parentheses around comparison in operand of &
> xpcom/tests/TestAtoms.cpp:193: warning: suggest parentheses around comparison in operand of &
> xpcom/tests/TestAtoms.cpp:194: warning: suggest parentheses around comparison in operand of &

Fix attached.
Attachment #432927 - Flags: review?(jonas)
Comment on attachment 432927 [details] [diff] [review]
fix

Doh! Thanks!
Attachment #432927 - Flags: review?(jonas) → review+
Pushed: http://hg.mozilla.org/mozilla-central/rev/5dc1c7e48631
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a4
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: