* time.c (time_arg): guard for mswin64 CI.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2016-09-12 15:16:09 +00:00
parent 94bbe4f0eb
commit 774442d27f

2
time.c
View File

@ -2453,7 +2453,6 @@ obj2subsecx(VALUE obj, VALUE *subsecx)
else { else {
divmodv(num_exact(obj), INT2FIX(1), &obj, &subsec); divmodv(num_exact(obj), INT2FIX(1), &obj, &subsec);
*subsecx = w2v(rb_time_magnify(v2w(subsec))); *subsecx = w2v(rb_time_magnify(v2w(subsec)));
RB_GC_GUARD(subsec);
} }
return obj2ubits(obj, 6); /* vtm->sec */ return obj2ubits(obj, 6); /* vtm->sec */
} }
@ -2592,6 +2591,7 @@ time_arg(int argc, VALUE *argv, struct vtm *vtm)
} }
validate_vtm(vtm); validate_vtm(vtm);
RB_GC_GUARD(vtm->subsecx);
} }
static int static int