ruby-changes:38813
From: nobu <ko1@a...>
Date: Sun, 14 Jun 2015 21:25:51 +0900 (JST)
Subject: [ruby-changes:38813] nobu:r50894 (trunk): raddrinfo.c: suppress a warning
nobu 2015-06-14 21:25:42 +0900 (Sun, 14 Jun 2015) New Revision: 50894 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50894 Log: raddrinfo.c: suppress a warning * ext/socket/raddrinfo.c (parse_numeric_port): explict cast to suppress a warning for precision losing conversion. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 50893) +++ ext/socket/raddrinfo.c (revision 50894) @@ -175,7 +175,7 @@ parse_numeric_port(const char *service, https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L175 if (0x10000 <= u) return 0; - *portp = u; + *portp = (int)u; return 1; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/