Closed Bug 653564 Opened 10 years ago Closed 10 years ago

ContentParent.cpp:654:53: warning: comparison between signed and unsigned integer expressions

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

Filing bug on this warning:

> dom/ipc/ContentParent.cpp: In member function 'void mozilla::dom::ContentParent::SetChildMemoryReporters(const InfallibleTArray<mozilla::dom::MemoryReport>&)':
> dom/ipc/ContentParent.cpp:654:53: warning: comparison between signed and unsigned integer expressions

Simple fix - we're iterating up to nsCOMArray::Count() (a signed value) using "PRUint32 i".

i just wants to be signed.
Attached patch trivial fixSplinter Review
Attachment #528954 - Flags: review?(doug.turner)
Attachment #528954 - Flags: review?(doug.turner) → review+
http://hg.mozilla.org/mozilla-central/rev/c45621e37aa8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.