Skip to content

Commit 34af499

Browse files
jhawthornk0kubun
authored andcommitted
Add missing write barrier to time_init_copy
1 parent 6312c40 commit 34af499

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

time.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4061,7 +4061,9 @@ time_init_copy(VALUE copy, VALUE time)
40614061
if (!OBJ_INIT_COPY(copy, time)) return copy;
40624062
GetTimeval(time, tobj);
40634063
GetNewTimeval(copy, tcopy);
4064-
MEMCPY(tcopy, tobj, struct time_object, 1);
4064+
4065+
time_set_timew(copy, tcopy, tobj->timew);
4066+
time_set_vtm(copy, tcopy, tobj->vtm);
40654067

40664068
return copy;
40674069
}

0 commit comments

Comments
 (0)