From 08eeecbbbb09e9394d5155ee12e4bd0bd56a2904 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 2 Aug 2004 05:26:19 +0000 Subject: (ptr_align): Use size_t; in practice, this is just as good as uintptr_t in checking for alignments, and has fewer configuration hassles. --- src/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.h b/src/system.h index 16354754a..a24e66f8f 100644 --- a/src/system.h +++ b/src/system.h @@ -810,5 +810,5 @@ ptr_align (void *ptr, size_t alignment) { char *p0 = ptr; char *p1 = p0 + alignment - 1; - return p1 - (uintptr_t) p1 % alignment; + return p1 - (size_t) p1 % alignment; } -- cgit v1.2.3-70-g09d2