aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/date_parse.c
diff options
context:
space:
mode:
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 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;