From 234878743f29bd5d80eb08be074f96724ca88ddf Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 26 Jun 2000 20:39:42 +0000 Subject: [PATCH] Cast a pointer to an unsigned long, not an unsigned int, before doing bit manipulations. --- lib/lwres/gethost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwres/gethost.c b/lib/lwres/gethost.c index ccde8b0ca6..a02741c993 100644 --- a/lib/lwres/gethost.c +++ b/lib/lwres/gethost.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: gethost.c,v 1.17 2000/06/22 21:59:27 tale Exp $ */ +/* $Id: gethost.c,v 1.18 2000/06/26 20:39:42 bwelling Exp $ */ #include @@ -29,7 +29,7 @@ #define LWRES_ALIGNBYTES (sizeof(char *) - 1) #define LWRES_ALIGN(p) \ - (((unsigned int)(p) + LWRES_ALIGNBYTES) &~ LWRES_ALIGNBYTES) + (((unsigned long)(p) + LWRES_ALIGNBYTES) &~ LWRES_ALIGNBYTES) static struct hostent *he = NULL; static int copytobuf(struct hostent *, struct hostent *, char *, int);