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;