Bugzilla bug #34920: fixed a bug in PR_EmulateAcceptRead that depended

on the implementation of an enum.
This commit is contained in:
wtc%netscape.com 2000-08-10 02:40:12 +00:00
Родитель 0c5fdd5b33
Коммит f1f2853c86
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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));