From 14b57772ece1fa9c9f597d8fe39496f8a4d9088a Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 13 Aug 2011 00:40:06 +0000 Subject: * 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 --- ChangeLog | 5 +++++ ext/date/date_parse.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a3ce97ab3..66bdae4b30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Aug 13 09:36:19 2011 CHIKANAGA Tomoyuki + + * ext/date/date_parse.c parse_ddd_cb): fix r32896. RB_GC_GUARD + insertion position was mistaken. [ruby-dev:44337] [Bug #5152] + Sat Aug 13 09:26:24 2011 Aaron Patterson * ext/psych/lib/psych/core_ext.rb: Make Kernel#y private. 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.1