1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (bitsize): Fix a conditional expression.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-08-10 18:26:28 +00:00
parent fe26dc97da
commit 06ed1c781a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Aug 11 03:26:07 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bitsize): Fix a conditional expression.
Sun Aug 11 02:44:03 2013 Zachary Scott <e@zzak.io>
* lib/time.rb: [DOC] Document constants by @markijbema [Fixes GH-377]

View file

@ -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))