summaryrefslogtreecommitdiff
path: root/ext/date/date_parse.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:59:38 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:59:38 +0000
commitbedb18f28240e89c4b60618125f2c99d56aa0c9c (patch)
tree77266e423154ff018360da321c531cd1378799d6 /ext/date/date_parse.c
parent4116d8a3bd7d90aba6c2cc6a61a4968bba667d6f (diff)
* 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
Diffstat (limited to 'ext/date/date_parse.c')
-rw-r--r--ext/date/date_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
index fd1dd65..7007163 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;