From bedb18f28240e89c4b60618125f2c99d56aa0c9c Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 23 Apr 2011 17:59:38 +0000 Subject: * ext/date/date_parse.c (n2i): takes long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/date/date_parse.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7033ea649f..3ca51d4b01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Apr 24 02:57:27 2011 Tadayoshi Funaba + + * ext/date/date_parse.c (n2i): takes long. + Sun Apr 24 02:51:06 2011 Tadayoshi Funaba * ext/date/date_parse.c: reverted. diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c index fd1dd654d0..7007163a85 100644 --- a/ext/date/date_parse.c +++ b/ext/date/date_parse.c @@ -900,9 +900,10 @@ parse_mday(VALUE str, VALUE hash) } static int -n2i(const char *s, int f, int w) +n2i(const char *s, long f, long w) { - int e, v, i; + long e, i; + int v; e = f + w; v = 0; -- cgit v1.2.3