summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 03:12:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 03:12:32 +0000
commit2b792abd69e38334d8b02f6fbd45e04e389b341b (patch)
tree03ab7e4b2a62edca93692eddb144d571a04db96c /ext/socket/socket.c
parent301821bd458421218e9f8c33af53a9870f5c628a (diff)
* ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as
int. This suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index a0c9618..43bff85 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1759,7 +1759,7 @@ socket_s_ip_address_list(VALUE self)
#elif defined(SIOCGIFCONF)
int fd = -1;
int ret;
-#define EXTRA_SPACE (sizeof(struct ifconf) + sizeof(union_sockaddr))
+#define EXTRA_SPACE ((int)(sizeof(struct ifconf) + sizeof(union_sockaddr)))
char initbuf[4096+EXTRA_SPACE];
char *buf = initbuf;
int bufsize;