diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-18 07:58:36 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-18 07:58:36 +0000 |
commit | 2c7c4b2e7b6c9400329885d146af5ca2ab557748 (patch) | |
tree | 00b4297b18d5e88145bd6c63fc73984e1553607e /ext/socket/mkconstants.rb | |
parent | e38a2399d21bd8c6f104a1b522a82ae0b75b34de (diff) | |
download | ruby-2c7c4b2e7b6c9400329885d146af5ca2ab557748.tar.gz |
* ext/socket/mkconstants.rb (INTEGER2VALUE): Suppress a warning:
comparison between signed and unsigned integer expressions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/mkconstants.rb')
-rw-r--r-- | ext/socket/mkconstants.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 521aa95547..1f4184f3bd 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -282,11 +282,11 @@ result = ERB.new(<<'EOS', nil, '%').result(binding) #ifdef HAVE_LONG_LONG #define INTEGER2VALUE(n) (0 < (n) ? \ ((n) <= FIXNUM_MAX ? LONG2FIX(n) : ULL2NUM(n)) : \ - (FIXNUM_MIN <= (n) ? LONG2FIX(n) : LL2NUM(n))) + (FIXNUM_MIN <= (LONG_LONG)(n) ? LONG2FIX(n) : LL2NUM(n))) #else #define INTEGER2VALUE(n) (0 < (n) ? \ ((n) <= FIXNUM_MAX ? LONG2FIX(n) : ULONG2NUM(n)) : \ - (FIXNUM_MIN <= (n) ? LONG2FIX(n) : LONG2NUM(n))) + (FIXNUM_MIN <= (long)(n) ? LONG2FIX(n) : LONG2NUM(n))) #endif static void |