summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2009-11-15 16:52:11 +0000
committerAndy Polyakov <appro@openssl.org>2009-11-15 16:52:11 +0000
commit2335e8a9ccdaf62eabc37c8b9b80195285ed887d (patch)
tree58578c300091bafe8fdd58e6afb6cbe0cfe0c781 /crypto/bio/b_sock.c
parent6f766a4181ad00fec0867cf3d9527718108eddf3 (diff)
b_sock.c: fix compiler warning.
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r--crypto/bio/b_sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index 5dc6cf4595..886786cf64 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -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)
{