From 7956346af5f3e97e84ef38dd9594743cb9a2f55e Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 13 Aug 2011 00:48:16 +0000 Subject: * backport r32962+r32965 from trunk. * 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/branches/ruby_1_9_3@32966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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); -- cgit v1.2.3