aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-12 15:16:09 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-12 15:16:09 +0000
commitef9cf36d121c1af5c05dd0e0023ac7008c028a92 (patch)
treeb3dff684a530d66b886403d7f57f37746982f3e5
parentf866a393d766301bd82401cc22474f6c3ea74e7c (diff)
downloadruby-ef9cf36d121c1af5c05dd0e0023ac7008c028a92.tar.gz
* 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
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index e31944a..ec9a04b 100644
--- a/time.c
+++ b/time.c
@@ -2453,7 +2453,6 @@ obj2subsecx(VALUE obj, VALUE *subsecx)
else {
divmodv(num_exact(obj), INT2FIX(1), &obj, &subsec);
*subsecx = w2v(rb_time_magnify(v2w(subsec)));
- RB_GC_GUARD(subsec);
}
return obj2ubits(obj, 6); /* vtm->sec */
}
@@ -2592,6 +2591,7 @@ time_arg(int argc, VALUE *argv, struct vtm *vtm)
}
validate_vtm(vtm);
+ RB_GC_GUARD(vtm->subsecx);
}
static int