From 2335e8a9ccdaf62eabc37c8b9b80195285ed887d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 15 Nov 2009 16:52:11 +0000 Subject: [PATCH] b_sock.c: fix compiler warning. --- crypto/bio/b_sock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.25.1