summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-28 11:28:23 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-28 11:28:23 +0000
commit3486a98a71d3d2d09258cbd0ab13dc715f750f25 (patch)
tree54f92733067e848ab7ab7412a5361dc793675246 /ext/date
parent97d6e56b0e68d5361809c4571fd1003ee41bffb0 (diff)
* 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
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index f9b08cb..53539b4 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];