ruby-changes:53296
From: nobu <ko1@a...>
Date: Sat, 3 Nov 2018 15:56:02 +0900 (JST)
Subject: [ruby-changes:53296] nobu:r65512 (trunk): internal.h: RHASH_ARRAY_SIZE_RAW value is unsigned
nobu 2018-11-03 15:55:57 +0900 (Sat, 03 Nov 2018) New Revision: 65512 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65512 Log: internal.h: RHASH_ARRAY_SIZE_RAW value is unsigned and get rid of warnings. [ruby-core:89688] [Bug #15279] Modified files: trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 65511) +++ internal.h (revision 65512) @@ -686,7 +686,7 @@ enum ruby_rhash_flags { https://github.com/ruby/ruby/blob/trunk/internal.h#L686 #define HASH_PROC_DEFAULT FL_USER2 #define RHASH_ARRAY_SIZE_RAW(h) \ - ((int)((RBASIC(h)->flags & RHASH_ARRAY_SIZE_MASK) >> RHASH_ARRAY_SIZE_SHIFT)) + ((unsigned int)((RBASIC(h)->flags & RHASH_ARRAY_SIZE_MASK) >> RHASH_ARRAY_SIZE_SHIFT)) int rb_hash_array_p(VALUE hash); struct li_table *rb_hash_array(VALUE hash); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/