summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 18:28:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 18:28:32 +0000
commit5b20e5e1fee1848ce59bc1e03109cc6daa717610 (patch)
tree6e2dd0adadb164ca8e7d0231916cba73b6dc133d /ext/socket/raddrinfo.c
parent037ce7f6bc29b2eeb4f40f0c28376c1aca8be844 (diff)
raddrinfo.c: suppress warnings
* ext/socket/raddrinfo.c (rsock_inspect_sockaddr): cast down explicitly to suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 2b5cb2d..de89dda 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -1189,7 +1189,7 @@ rsock_inspect_sockaddr(struct sockaddr *sockaddr_arg, socklen_t socklen, VALUE r
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 *sockaddr_arg, socklen_t socklen, VALUE r
ap = addr->sdl_data + off;
alen = addr->sdl_alen;
if (endp - ap < alen)
- alen = endp - ap;
+ alen = (int)(endp - ap);
}
CATSEP;