From: Kurt Zeilenga Date: Wed, 15 Sep 1999 03:26:23 +0000 (+0000) Subject: Use ptrdiff_t for pointer offset. X-Git-Tag: UCDATA_2_4~432 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=202dbd1b1faeecdb27ce60b8be697ed9725a4b07;p=openldap Use ptrdiff_t for pointer offset. --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index d530e52002..0f7f3d334e 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -167,7 +167,7 @@ str2entry( char *s ) #define MAKE_SPACE( n ) { \ while ( ecur + (n) > ebuf + emaxsize ) { \ - int offset; \ + ptrdiff_t offset; \ offset = (int) (ecur - ebuf); \ ebuf = (unsigned char *) ch_realloc( (char *) ebuf, \ emaxsize + GRABSIZE ); \