From a08d1fb9967803eebbfe3987fd4e582a9ff3f40e Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Thu, 10 Aug 2000 02:40:12 +0000 Subject: [PATCH] Bugzilla bug #34920: fixed a bug in PR_EmulateAcceptRead that depended on the implementation of an enum. git-svn-id: svn://10.0.0.236/trunk@75949 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/src/io/priometh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/nsprpub/pr/src/io/priometh.c b/mozilla/nsprpub/pr/src/io/priometh.c index 52f60092a81..a2b8e9c8abb 100644 --- a/mozilla/nsprpub/pr/src/io/priometh.c +++ b/mozilla/nsprpub/pr/src/io/priometh.c @@ -307,7 +307,7 @@ PR_IMPLEMENT(PRInt32) PR_EmulateAcceptRead( if (rv >= 0) { /* copy the new info out where caller can see it */ - enum { AMASK = 7 }; /* mask for alignment of PRNetAddr */ +#define AMASK ((PRPtrdiff)7) /* mask for alignment of PRNetAddr */ PRPtrdiff aligned = (PRPtrdiff)buf + amount + AMASK; *raddr = (PRNetAddr*)(aligned & ~AMASK); memcpy(*raddr, &remote, PR_NETADDR_SIZE(&remote));