summaryrefslogtreecommitdiff
path: root/crypto/bio
diff options
context:
space:
mode:
authorappro <appro>2009-11-15 16:52:11 +0000
committerappro <appro>2009-11-15 16:52:11 +0000
commitbbde7a727d062a22d50769bdea2f62465fac2a0e (patch)
tree514d6b47927c4e7678a78cbdcc747720d1afd9ed /crypto/bio
parentd2660ad2d524c9b47d1f0d942f60f28f803ced62 (diff)
downloadopenssl-bbde7a727d062a22d50769bdea2f62465fac2a0e.tar.gz
b_sock.c: fix compiler warning.
Diffstat (limited to 'crypto/bio')
-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 5dc6cf459..886786cf6 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)
{