ruby-changes:57173
From: Nobuyoshi <ko1@a...>
Date: Mon, 19 Aug 2019 16:00:09 +0900 (JST)
Subject: [ruby-changes:57173] Nobuyoshi Nakada: 1bd60c66d3 (master): Fix FL_USER19
https://git.ruby-lang.org/ruby.git/commit/?id=1bd60c66d3 From 1bd60c66d385142d08f678f8a9563c311cfc3fe8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> 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. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index d9a72d4..1bb4671 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1304,7 +1304,7 @@ int rb_big_sign(VALUE); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1304 #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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/