mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:23:34 +00:00
Bug 911425 - Fix -Wsign-compare warning in xpcom/glue/FileUtils.cpp. r=glandium
This commit is contained in:
parent
c50020859b
commit
775844e15d
@ -450,7 +450,7 @@ mozilla::ReadAheadLib(mozilla::pathstr_t aFilePath)
|
|||||||
// information to find the biggest offset from the library that
|
// information to find the biggest offset from the library that
|
||||||
// will be mapped in memory.
|
// will be mapped in memory.
|
||||||
char *cmd = &base[sizeof(struct cpu_mach_header)];
|
char *cmd = &base[sizeof(struct cpu_mach_header)];
|
||||||
off_t end = 0;
|
uint32_t end = 0;
|
||||||
for (uint32_t ncmds = mh->ncmds; ncmds; ncmds--) {
|
for (uint32_t ncmds = mh->ncmds; ncmds; ncmds--) {
|
||||||
struct segment_command *sh = (struct segment_command *)cmd;
|
struct segment_command *sh = (struct segment_command *)cmd;
|
||||||
if (sh->cmd != LC_SEGMENT) {
|
if (sh->cmd != LC_SEGMENT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user