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 --- ext/date/date_parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/date/date_parse.c') 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