mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bugzilla bug #34920: fixed a bug in PR_EmulateAcceptRead that depended
on the implementation of an enum.
This commit is contained in:
parent
0c5fdd5b33
commit
f1f2853c86
@ -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…
Reference in New Issue
Block a user