From 9ed623780f5c3c50ef35faf05dd0c3013fc699da Mon Sep 17 00:00:00 2001 From: "Yuriy M. Kaminskiy" Date: Sat, 20 Jun 2015 21:39:41 +1000 Subject: [PATCH] fix integer overflow on 2GiB+ maps on 32-bit platforms Signed-off-by: Craig Small --- pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmap.c b/pmap.c index 17e0e304..ac45f5bb 100644 --- a/pmap.c +++ b/pmap.c @@ -518,7 +518,7 @@ static int one_proc(proc_t * p) unsigned long total_shared = 0ul; unsigned long total_private_readonly = 0ul; unsigned long total_private_writeable = 0ul; - KLONG diff = 0; + unsigned KLONG diff = 0; const char *cp2 = NULL; unsigned long long rss = 0ull; unsigned long long private_dirty = 0ull; -- 2.40.0