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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: WeirdAl, Assigned: sicking)
References
Details
Attachments
(1 file)
1.14 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
/**
* 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.
Reporter | ||
Comment 1•19 years ago
|
||
bz suspected CSSParser could be at fault. I just filed bug 338247 for a
compile-time warning, on code which CSSParser does use. Connection?
Comment 2•19 years ago
|
||
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)
Assignee | ||
Comment 3•19 years ago
|
||
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+
Assignee | ||
Comment 4•19 years ago
|
||
Checked in. Thanks for findeing this Alex
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•