* 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
This commit is contained in:
parent
e38a2399d2
commit
2c7c4b2e7b
@ -1,3 +1,8 @@
|
||||
Sat May 18 16:57:58 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/mkconstants.rb (INTEGER2VALUE): Suppress a warning:
|
||||
comparison between signed and unsigned integer expressions
|
||||
|
||||
Sat May 18 16:38:39 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* compile.c (iseq_compile_each): forward anonymous and first keyword
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user