Bug 695691 - Fix fscanf warning about %lu attached to size_t in nsMemoryReporterManager.cpp. r=njn

This commit is contained in:
Justin Lebar 2011-10-20 11:57:54 -04:00
parent 16b4f42b4e
commit f8f92ce92b

View File

@ -84,7 +84,7 @@ static PRInt64 GetProcSelfStatmField(int n)
NS_ASSERTION(n < MAX_FIELD, "bad field number");
FILE *f = fopen("/proc/self/statm", "r");
if (f) {
int nread = fscanf(f, "%lu %lu", &fields[0], &fields[1]);
int nread = fscanf(f, "%zu %zu", &fields[0], &fields[1]);
fclose(f);
return (PRInt64) ((nread == MAX_FIELD) ? fields[n]*getpagesize() : -1);
}