提交 2335e8a9 编写于 作者: A Andy Polyakov

b_sock.c: fix compiler warning.

上级 6f766a41
...@@ -822,7 +822,8 @@ int BIO_accept(int sock, char **addr) ...@@ -822,7 +822,8 @@ int BIO_accept(int sock, char **addr)
if (sizeof(sa.len.i)!=sizeof(sa.len.s) && sa.len.i==0) if (sizeof(sa.len.i)!=sizeof(sa.len.s) && sa.len.i==0)
{ {
OPENSSL_assert(sa.len.s<=sizeof(sa.from)); 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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册