Skip to content

Commit a61aa60

Browse files
committed
Conversion is needed between WIDEVALUE and VALUE
1 parent 89fce7e commit a61aa60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ time_mark(void *ptr)
18911891
{
18921892
struct time_object *tobj = ptr;
18931893
if (!FIXWV_P(tobj->timew)) {
1894-
rb_gc_mark_movable(WIDEVAL_GET(tobj->timew));
1894+
rb_gc_mark_movable(w2v(tobj->timew));
18951895
}
18961896
rb_gc_mark_movable(tobj->vtm.year);
18971897
rb_gc_mark_movable(tobj->vtm.subsecx);
@@ -1904,7 +1904,7 @@ time_compact(void *ptr)
19041904
{
19051905
struct time_object *tobj = ptr;
19061906
if (!FIXWV_P(tobj->timew)) {
1907-
WIDEVAL_GET(tobj->timew) = rb_gc_location(WIDEVAL_GET(tobj->timew));
1907+
WIDEVAL_GET(tobj->timew) = WIDEVAL_WRAP(rb_gc_location(w2v(tobj->timew)));
19081908
}
19091909

19101910
tobj->vtm.year = rb_gc_location(tobj->vtm.year);

0 commit comments

Comments
 (0)