mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
time.c: fix time_mark_and_move when WIDEVALUE_IS_WIDER
In such case the pointer need to be casted.
This commit is contained in:
parent
77b3495e97
commit
2a6345e957
1 changed files with 2 additions and 2 deletions
4
time.c
4
time.c
|
@ -1891,8 +1891,8 @@ static void
|
||||||
time_mark_and_move(void *ptr)
|
time_mark_and_move(void *ptr)
|
||||||
{
|
{
|
||||||
struct time_object *tobj = ptr;
|
struct time_object *tobj = ptr;
|
||||||
if (!FIXWV_P(tobj->timew)) {
|
if (!WIDEVALUE_IS_WIDER || !FIXWV_P(tobj->timew)) {
|
||||||
rb_gc_mark_and_move(&WIDEVAL_GET(tobj->timew));
|
rb_gc_mark_and_move((VALUE *)&WIDEVAL_GET(tobj->timew));
|
||||||
}
|
}
|
||||||
rb_gc_mark_and_move(&tobj->vtm.year);
|
rb_gc_mark_and_move(&tobj->vtm.year);
|
||||||
rb_gc_mark_and_move(&tobj->vtm.subsecx);
|
rb_gc_mark_and_move(&tobj->vtm.subsecx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue