aboutsummaryrefslogtreecommitdiff
path: root/utils/vmallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/vmallocate.c')
-rw-r--r--utils/vmallocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/vmallocate.c b/utils/vmallocate.c
index 039b3097..b7eafed3 100644
--- a/utils/vmallocate.c
+++ b/utils/vmallocate.c
@@ -207,7 +207,7 @@ main (int argc, char **argv)
*p = 1;
if (verbose > 1
- && ((unsigned int) (p - address) & ((1U<<20) - 1)) == 0)
+ && ((uintptr_t) (p - address) & ((1UL<<20) - 1)) == 0)
fprintf (stderr, "\r%"PRIu64,
allocated
+ ((uint64_t) (uintptr_t) p - (uint64_t) address));