summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-14 12:25:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-14 12:25:42 +0000
commitd4440631b7170f59efcb3c6c97286ca79f4bf53f (patch)
tree3f098a8ef9b8536ce164627f00b33cb0533cf59e /ext/socket/raddrinfo.c
parent0b2f4ab07e2b8ece58d7d001a2c3c415941a64fb (diff)
raddrinfo.c: suppress a warning
* ext/socket/raddrinfo.c (parse_numeric_port): explict cast to suppress a warning for precision losing conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 370ea69..827d89e 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -175,7 +175,7 @@ parse_numeric_port(const char *service, int *portp)
if (0x10000 <= u)
return 0;
- *portp = u;
+ *portp = (int)u;
return 1;
}