aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 03:43:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 03:43:28 +0000
commit29d0a13e1022b2e7d331c23132bf6c54a9f8330e (patch)
tree6f52ea135dcc3663befbbaad54c90391b34321e0 /ext
parentad393b9be8e094ff9c71146bc65ee7cb7adbddc1 (diff)
downloadruby-29d0a13e1022b2e7d331c23132bf6c54a9f8330e.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')
-rw-r--r--ext/date/date_core.c4
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));
}
/*