diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index d2bd677e6a..4504468789 100644 --- a/vm_method.c +++ b/vm_method.c @@ -351,6 +351,8 @@ rb_method_definition_create(rb_method_type_t type, ID mid) def = ZALLOC(rb_method_definition_t); def->type = type; def->original_id = mid; + static uintptr_t method_serial = 1; + def->method_serial = method_serial++; return def; } |