diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 03:43:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 03:43:28 +0000 |
commit | 8d23c8bf3b93b0f7ab6ea9493bda39da2605d427 (patch) | |
tree | 6f52ea135dcc3663befbbaad54c90391b34321e0 /ext/date | |
parent | c85040d4d07656c4d2a788be145609845ec6074f (diff) | |
download | ruby-8d23c8bf3b93b0f7ab6ea9493bda39da2605d427.tar.gz |
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
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } /* |