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.
This commit is contained in:
parent
32fb6c8c11
commit
97d75639a9
@ -62,7 +62,7 @@ static struct {
|
|||||||
static void
|
static void
|
||||||
rb_class_clear_method_cache(VALUE klass, VALUE arg)
|
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) {
|
if (RCLASS_SERIAL(klass) > old_serial) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user