From fd8d3c5c09550a6c6341fad8ae9566ddc6047d44 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Nov 2018 06:55:57 +0000 Subject: [PATCH] internal.h: RHASH_ARRAY_SIZE_RAW value is unsigned and get rid of warnings. [ruby-core:89688] [Bug #15279] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal.h b/internal.h index 8d287ecdfa..800c092049 100644 --- a/internal.h +++ b/internal.h @@ -686,7 +686,7 @@ enum ruby_rhash_flags { #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);