mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 695691 - Fix fscanf warning about %lu attached to size_t in nsMemoryReporterManager.cpp. r=njn
This commit is contained in:
parent
16b4f42b4e
commit
f8f92ce92b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user