From 8d23c8bf3b93b0f7ab6ea9493bda39da2605d427 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 24 Mar 2016 03:43:28 +0000 Subject: date_core.c: append strings * ext/date/date_core.c (dt_lite_iso8601): strftimev() always returns a String, so append them directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/date') diff --git a/ext/date/date_core.c b/ext/date/date_core.c index dbe8cb97da..a863f9c17c 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -8350,8 +8350,8 @@ dt_lite_iso8601(int argc, VALUE *argv, VALUE self) if (argc >= 1) n = NUM2LONG(argv[0]); - return f_add(strftimev("%Y-%m-%d", self, set_tmx), - iso8601_timediv(self, n)); + return rb_str_append(strftimev("%Y-%m-%d", self, set_tmx), + iso8601_timediv(self, n)); } /* -- cgit v1.2.3