ruby-changes:59761
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 21 Jan 2020 14:24:06 +0900 (JST)
Subject: [ruby-changes:59761] 97d75639a9 (master): VALUE is narrower than rb_serial_t
https://git.ruby-lang.org/ruby.git/commit/?id=97d75639a9 From 97d75639a9970ce3868ba91a57be1856a3957711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Tue, 21 Jan 2020 14:21:15 +0900 Subject: VALUE is narrower than rb_serial_t VALUE and rb_serial_t do not agree with their width. We have to be consistent. Assigning an rb_serial_t value to a VALUE variable is practically a problem on a ILP32 environment. diff --git a/vm_method.c b/vm_method.c index 877198c..9000966 100644 --- a/vm_method.c +++ b/vm_method.c @@ -62,7 +62,7 @@ static struct { https://github.com/ruby/ruby/blob/trunk/vm_method.c#L62 static void rb_class_clear_method_cache(VALUE klass, VALUE arg) { - VALUE old_serial = *(rb_serial_t *)arg; + rb_serial_t old_serial = *(rb_serial_t *)arg; if (RCLASS_SERIAL(klass) > old_serial) { return; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/