Closed
Bug 851981
Opened 12 years ago
Closed 12 years ago
mozalloc_oom.cpp:41:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.06 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Recently-introduced build warning:
{
/mozilla/memory/mozalloc/mozalloc_oom.cpp: In function 'void mozalloc_handle_oom(size_t)':
/mozilla/memory/mozalloc/mozalloc_oom.cpp:41:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
}
This is from got a signed int loop-iterator "i" that's compared against the size_t value OOM_MSG_FIRST_DIGIT_OFFSET.
We probably just want to make "i" a size_t as well (and static-assert that OOM_MSG_FIRST_DIGIT_OFFSET is greater than 0, so that the "i >= OOM_MSG_FIRST_DIGIT_OFFSET" comparison will eventually fail).
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #725955 -
Flags: review?(benjamin)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
Comment on attachment 725955 [details] [diff] [review]
fix
I don't think you meant to reindent the modeline, right? r=me with that reverted
Attachment #725955 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Oops -- thanks for catching that. :)
Fixed that & pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/8696e0523772
Flags: in-testsuite-
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•