b_sock.c: fix compiler warning.
[openssl.git] / crypto / bio / b_sock.c
index 5dc6cf4..886786c 100644 (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));
        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)
                {
                }
        if (ret == INVALID_SOCKET)
                {