summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-01-21 14:21:15 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-01-21 14:21:15 +0900
commit97d75639a9970ce3868ba91a57be1856a3957711 (patch)
tree8b0e218c521c1fd280b3a18f5e27c6cde071cba3 /vm_method.c
parent32fb6c8c117d018fd8e7887c955ab3ea22f6c420 (diff)
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.
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 877198cee1..900096629d 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -62,7 +62,7 @@ static struct {
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;
}