Closed
Bug 859020
Opened 13 years ago
Closed 13 years ago
Remove the MSVC exemption for FAIL_ON_WARNINGS in dom
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: emk, Assigned: emk)
Details
Attachments
(1 file)
|
7.06 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #734323 -
Flags: review?(bzbarsky)
Comment 1•13 years ago
|
||
Comment on attachment 734323 [details] [diff] [review]
patch
Review of attachment 734323 [details] [diff] [review]:
-----------------------------------------------------------------
A bit sad that we have to add a description for every MOZ_NOT_REACHED...
::: dom/indexedDB/Key.cpp
@@ +392,5 @@
>
> Float64Union pun;
> pun.d = aFloat;
> uint64_t number = pun.u & PR_UINT64(0x8000000000000000) ?
> + 0 - pun.u :
Why do you need to add 0?
@@ +417,5 @@
>
> Float64Union pun;
> pun.u = number & PR_UINT64(0x8000000000000000) ?
> (number & ~PR_UINT64(0x8000000000000000)) :
> + 0 - number;
ditto
| Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Mounir Lamouri (:mounir) from comment #1)
> ::: dom/indexedDB/Key.cpp
> @@ +392,5 @@
> >
> > Float64Union pun;
> > pun.d = aFloat;
> > uint64_t number = pun.u & PR_UINT64(0x8000000000000000) ?
> > + 0 - pun.u :
>
> Why do you need to add 0?
MSVC is complaining about negating an unsigned value. See bug 859021 for details. I'll add a comment about that.
Comment 3•13 years ago
|
||
Comment on attachment 734323 [details] [diff] [review]
patch
>+ 0 - pun.u :
Please parenthesize that as (0 - pun.u)
>+ 0 - number;
Likewise.
r=me
Attachment #734323 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Flags: in-testsuite-
Comment 5•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•