summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-13 00:40:06 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-13 00:40:06 +0000
commit14b57772ece1fa9c9f597d8fe39496f8a4d9088a (patch)
treebcc4b06852d48138f03c943e9fc6484bf1b72005 /ext/date
parent5339bbe2dc3130f7e7534b0d72dd1f1d42b7f8d5 (diff)
* ext/date/date_parse.c parse_ddd_cb): fix r32896. RB_GC_GUARD
insertion position was mistaken. [ruby-dev:44337] [Bug #5152] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
index 9b8ff36838..1214f39781 100644
--- a/ext/date/date_parse.c
+++ b/ext/date/date_parse.c
@@ -1323,8 +1323,8 @@ parse_ddd_cb(VALUE m, VALUE hash)
set_hash("yday", INT2FIX(n2i(cs2, 4, 3)));
}
break;
- RB_GC_GUARD(s2);
}
+ RB_GC_GUARD(s2);
if (!NIL_P(s3)) {
cs3 = RSTRING_PTR(s3);
l3 = RSTRING_LEN(s3);