Closed Bug 338247 Opened 19 years ago Closed 19 years ago

m:\builds\vc8debug\dist\include\content\nsContentUtils.h(220) : warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: WeirdAl, Assigned: sicking)

References

Details

Attachments

(1 file)

/** * Returns true if aNode1 is before aNode2 in the same connected * tree. */ static PRBool PositionIsBefore(nsINode* aNode1, nsINode* aNode2) { return ComparePosition(aNode1, aNode2) & (nsIDOM3Node::DOCUMENT_POSITION_PRECEDING | nsIDOM3Node::DOCUMENT_POSITION_DISCONNECTED) == nsIDOM3Node::DOCUMENT_POSITION_PRECEDING; } Building SeaMonkey trunk on WinXP, MSVC8 keeps spewing this build warning.
No longer blocks: 335913
bz suspected CSSParser could be at fault. I just filed bug 338247 for a compile-time warning, on code which CSSParser does use. Connection?
Blocks: 338188
Blocks: 335913
Attached patch FixSplinter Review
sicking, please land this after you review it? I won't be able to till May 29...
Attachment #222309 - Flags: superreview?(bugmail)
Attachment #222309 - Flags: review?(bugmail)
Comment on attachment 222309 [details] [diff] [review] Fix Thanks. I was just about to attach the exact same patch
Attachment #222309 - Flags: superreview?(bugmail)
Attachment #222309 - Flags: superreview+
Attachment #222309 - Flags: review?(bugmail)
Attachment #222309 - Flags: review+
Checked in. Thanks for findeing this Alex
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: