b_sock.c: fix compiler warning.

This commit is contained in:
Andy Polyakov 2009-11-15 16:52:11 +00:00
parent 6f766a4181
commit 2335e8a9cc

View File

@ -822,7 +822,8 @@ int BIO_accept(int sock, char **addr)
if (sizeof(sa.len.i)!=sizeof(sa.len.s) && sa.len.i==0)
{
OPENSSL_assert(sa.len.s<=sizeof(sa.from));
sa.len.i = (unsigned int)sa.len.s;
sa.len.i = (int)sa.len.s;
/* use sa.len.i from this point */
}
if (ret == INVALID_SOCKET)
{