From 06ed1c781a86f21a10780daf93a70bf830405f13 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 10 Aug 2013 18:26:28 +0000 Subject: [PATCH] * bignum.c (bitsize): Fix a conditional expression. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bignum.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5efb8c3664..3e74589bb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 11 03:26:07 2013 Tanaka Akira + + * bignum.c (bitsize): Fix a conditional expression. + Sun Aug 11 02:44:03 2013 Zachary Scott * lib/time.rb: [DOC] Document constants by @markijbema [Fixes GH-377] diff --git a/bignum.c b/bignum.c index 183b37da18..61f0fa42c8 100644 --- a/bignum.c +++ b/bignum.c @@ -281,7 +281,7 @@ static int nlz(BDIGIT x) { return nlz_int128((uint128_t)x) - (SIZEOF_INT128_T-SI #else # define bitsize(x) \ (sizeof(x) <= SIZEOF_INT ? SIZEOF_INT * CHAR_BIT - nlz_int(x) : \ - sizeof(x) <= SIZEOF_LONG ? SIZEOF_LONG * CHAR_BIT - nlz_long(x)) + SIZEOF_LONG * CHAR_BIT - nlz_long(x)) #endif #define U16(a) ((uint16_t)(a))