ruby-changes:28596
From: nobu <ko1@a...>
Date: Sun, 12 May 2013 03:28:42 +0900 (JST)
Subject: [ruby-changes:28596] nobu:r40648 (trunk): raddrinfo.c: suppress warnings
nobu 2013-05-12 03:28:32 +0900 (Sun, 12 May 2013) New Revision: 40648 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40648 Log: raddrinfo.c: suppress warnings * ext/socket/raddrinfo.c (rsock_inspect_sockaddr): cast down explicitly to suppress warnings. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 40647) +++ ext/socket/raddrinfo.c (revision 40648) @@ -1189,7 +1189,7 @@ rsock_inspect_sockaddr(struct sockaddr * https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L1189 np = addr->sdl_data; nlen = addr->sdl_nlen; if (endp - np < nlen) - nlen = endp - np; + nlen = (int)(endp - np); } off = addr->sdl_nlen; @@ -1197,7 +1197,7 @@ rsock_inspect_sockaddr(struct sockaddr * https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L1197 ap = addr->sdl_data + off; alen = addr->sdl_alen; if (endp - ap < alen) - alen = endp - ap; + alen = (int)(endp - ap); } CATSEP; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/