Skip to content

Commit c65a89e

Browse files
committed
fix bugs
1 parent e2776f0 commit c65a89e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ rb_using_refinement(NODE *cref, VALUE klass, VALUE module)
11201120
RCLASS_REFINED_CLASS(c) = klass;
11211121

11221122
RCLASS_M_TBL_WRAPPER(OBJ_WB_UNPROTECT(c)) =
1123-
RCLASS_M_TBL_WRAPPER(OBJ_WB_UNPROTECT(RCLASS_ORIGIN(module)));
1123+
RCLASS_M_TBL_WRAPPER(OBJ_WB_UNPROTECT(module));
11241124

11251125
module = RCLASS_SUPER(module);
11261126
while (module && module != klass) {

internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ RCLASS_M_TBL_INIT(VALUE c)
300300
struct method_table_wrapper *wrapper;
301301
wrapper = ALLOC(struct method_table_wrapper);
302302
wrapper->tbl = st_init_numtable();
303-
303+
wrapper->serial = 0;
304304
RCLASS_M_TBL_WRAPPER(c) = wrapper;
305305
}
306306

0 commit comments

Comments
 (0)