diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-07 03:12:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-07 03:12:32 +0000 |
commit | 2b792abd69e38334d8b02f6fbd45e04e389b341b (patch) | |
tree | 03ab7e4b2a62edca93692eddb144d571a04db96c /ext | |
parent | 301821bd458421218e9f8c33af53a9870f5c628a (diff) | |
download | ruby-2b792abd69e38334d8b02f6fbd45e04e389b341b.tar.gz |
* 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')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index a0c9618ce4..43bff85737 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; |