diff options
Diffstat (limited to 'include/obstack.h')
-rw-r--r-- | include/obstack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/obstack.h b/include/obstack.h index a6eb6c9..0d8746f 100644 --- a/include/obstack.h +++ b/include/obstack.h @@ -137,9 +137,9 @@ relative to B. Otherwise, use the faster strategy of computing the alignment relative to 0. */ -#define __PTR_ALIGN(B, P, A) \ - __BPTR_ALIGN (sizeof (ptrdiff_t) < sizeof (void *) ? (B) : (char *) 0, \ - P, A) +#define __PTR_ALIGN(B, P, A) \ + (sizeof (ptrdiff_t) < sizeof (void *) ? __BPTR_ALIGN (B, P, A) \ + : (char *) (((ptrdiff_t) (P) + (A)) & ~(A))) #ifndef __attribute_pure__ # if defined __GNUC_MINOR__ && __GNUC__ * 1000 + __GNUC_MINOR__ >= 2096 |