From 1bd60c66d385142d08f678f8a9563c311cfc3fe8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 19 Aug 2019 15:55:53 +0900 Subject: Fix FL_USER19 * include/ruby/ruby.h: cast via `unsigned int` explicitly, to get rid of signed extension by implicit integer promotion. --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index d9a72d4424..1bb4671c54 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1304,7 +1304,7 @@ int rb_big_sign(VALUE); #define FL_USER16 ((VALUE)RUBY_FL_USER16) #define FL_USER17 ((VALUE)RUBY_FL_USER17) #define FL_USER18 ((VALUE)RUBY_FL_USER18) -#define FL_USER19 ((VALUE)RUBY_FL_USER19) +#define FL_USER19 ((VALUE)(unsigned int)RUBY_FL_USER19) #define RB_SPECIAL_CONST_P(x) (RB_IMMEDIATE_P(x) || !RB_TEST(x)) #define SPECIAL_CONST_P(x) RB_SPECIAL_CONST_P(x) -- cgit v1.2.3