diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-13 00:48:16 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-13 00:48:16 +0000 |
commit | 7956346af5f3e97e84ef38dd9594743cb9a2f55e (patch) | |
tree | 03e7c162a706f5725f9d0cb24e538b7b1ce0fd0d /ext | |
parent | 1bbb318938de0be96e8d1b54c74dbc4a568446c1 (diff) |
* 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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/date_parse.c | 2 |
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); |