Closed Bug 689195 Opened 13 years ago Closed 13 years ago

nsLocalFileUnix.cpp:1432:78: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla9

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Filing bug on this build warning:
> xpcom/io/nsLocalFileUnix.cpp:1432:78: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

That points to this line:
> 1432         for (int i = 0; i < NS_ARRAY_LENGTH(executableExts); i++) {
which was added in this cset for bug 663899:
https://hg.mozilla.org/mozilla-central/rev/83c0640ea8b1

Patch coming up.
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #562462 - Flags: review?(smichaud)
Comment on attachment 562462 [details] [diff] [review]
fix: s/int/size_t/

Thanks for catching this.
Attachment #562462 - Flags: review?(smichaud) → review+
Good catch! I wasn't thinking of it at the time.
Thanks!
https://hg.mozilla.org/integration/mozilla-inbound/rev/95a1d14917c4
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
https://hg.mozilla.org/mozilla-central/rev/95a1d14917c4
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [inbound]
Blocks: 704622
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: