Closed Bug 443769 Opened 16 years ago Closed 16 years ago

[FIX]IsJProfAction condition is probably incorrect due to operator precedence

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/dom/src/base/nsJSEnvironment.cpp&rev=1.399&mark=3032#3024

The reporter of bug 440771 pointed out this problem, saying "== has precedence over |, need () or ???".

  action->sa_flags == SA_RESTART | SA_SIGINFO);

Putting parens around "SA_RESTART | SA_SIGINFO" would make tools stop complaining about an always-true condition, but I have no idea if that's the right fix.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #337107 - Flags: superreview?(dbaron)
Attachment #337107 - Flags: review?(dbaron)
Summary: IsJProfAction condition is probably incorrect due to operator precedence → [FIX]IsJProfAction condition is probably incorrect due to operator precedence
Comment on attachment 337107 [details] [diff] [review]
This is definitely what we want

r+sr=dbaron
Attachment #337107 - Flags: superreview?(dbaron)
Attachment #337107 - Flags: superreview+
Attachment #337107 - Flags: review?(dbaron)
Attachment #337107 - Flags: review+
Pushed changeset f3d3c41fa686
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: