From: Andy Polyakov Date: Sun, 15 Nov 2009 16:52:11 +0000 (+0000) Subject: b_sock.c: fix compiler warning. X-Git-Tag: OpenSSL-fips-2_0-rc1~1441 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2335e8a9ccdaf62eabc37c8b9b80195285ed887d;p=oweals%2Fopenssl.git b_sock.c: fix compiler warning. --- 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) {