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
This commit is contained in:
parent
186f953f67
commit
a08d1fb996
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user