From 3486a98a71d3d2d09258cbd0ab13dc715f750f25 Mon Sep 17 00:00:00 2001 From: tadf Date: Tue, 28 Feb 2012 11:28:23 +0000 Subject: * ext/date/date_core.c: [ruby-core:42998] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/date/date_core.c b/ext/date/date_core.c index f9b08cb622..53539b49f1 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -1,5 +1,5 @@ /* - date_core.c: Coded by Tadayoshi Funaba 2010, 2011 + date_core.c: Coded by Tadayoshi Funaba 2010-2012 */ #include "ruby.h" @@ -8487,6 +8487,7 @@ iso8601_timediv(VALUE self, VALUE n) { VALUE fmt; + n = to_integer(n); fmt = rb_usascii_str_new2("T%H:%M:%S"); if (f_gt_p(n, INT2FIX(0))) { VALUE argv[3]; -- cgit v1.2.3