X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/c55a77db55ebf46a399f136eeb3a928b1e862772..43236f357ba2001d59b5937d14a50a56478bb8e0:/test/src/cf.c?ds=sidebyside diff --git a/test/src/cf.c b/test/src/cf.c index 4dc3dc00f..8931ba6c4 100644 --- a/test/src/cf.c +++ b/test/src/cf.c @@ -31,6 +31,11 @@ Translated back into C, March 1990! */ #ifdef __STDC__ #include #include +#include +#endif + +#ifndef intptr_t +# define intptr_t long long int #endif /* ----- parameters ----- */ @@ -354,7 +359,7 @@ if (lastline_one != NULL) lastline_one->next = nextline; lastline_one = nextline; pline_one = nextline; -bufnext_one = (char *) (((int)bufnext_one+3) & (-4)); +bufnext_one = (char *) (((intptr_t)bufnext_one+ sizeof (intptr_t) - 1) & (-(sizeof (intptr_t)))); } @@ -403,7 +408,7 @@ if (lastline_two != NULL) lastline_two->next = nextline; lastline_two = nextline; pline_two = nextline; -bufnext_two = (char *) (((int)bufnext_two+3) & (-4)); +bufnext_two = (char *) (((intptr_t)bufnext_two+ sizeof (intptr_t) - 1) & (-(sizeof (intptr_t)))); }