From 775844e15da684de72cc68c07e6f595ceac6926a Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Wed, 7 Aug 2013 22:52:41 -0700 Subject: [PATCH] Bug 911425 - Fix -Wsign-compare warning in xpcom/glue/FileUtils.cpp. r=glandium --- xpcom/glue/FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/glue/FileUtils.cpp b/xpcom/glue/FileUtils.cpp index 25f1744426ac..bc531308c2c7 100644 --- a/xpcom/glue/FileUtils.cpp +++ b/xpcom/glue/FileUtils.cpp @@ -450,7 +450,7 @@ mozilla::ReadAheadLib(mozilla::pathstr_t aFilePath) // information to find the biggest offset from the library that // will be mapped in memory. char *cmd = &base[sizeof(struct cpu_mach_header)]; - off_t end = 0; + uint32_t end = 0; for (uint32_t ncmds = mh->ncmds; ncmds; ncmds--) { struct segment_command *sh = (struct segment_command *)cmd; if (sh->cmd != LC_SEGMENT) {