Fix FL_USER19

* include/ruby/ruby.h: cast via `unsigned int` explicitly, to get
  rid of signed extension by implicit integer promotion.
This commit is contained in:
Nobuyoshi Nakada 2019-08-19 15:55:53 +09:00
parent 4515bcc922
commit 1bd60c66d3
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -1304,7 +1304,7 @@ int rb_big_sign(VALUE);
#define FL_USER16 ((VALUE)RUBY_FL_USER16) #define FL_USER16 ((VALUE)RUBY_FL_USER16)
#define FL_USER17 ((VALUE)RUBY_FL_USER17) #define FL_USER17 ((VALUE)RUBY_FL_USER17)
#define FL_USER18 ((VALUE)RUBY_FL_USER18) #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 RB_SPECIAL_CONST_P(x) (RB_IMMEDIATE_P(x) || !RB_TEST(x))
#define SPECIAL_CONST_P(x) RB_SPECIAL_CONST_P(x) #define SPECIAL_CONST_P(x) RB_SPECIAL_CONST_P(x)