diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-27 09:08:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-27 09:08:29 +0000 |
commit | 2451d735a79d7c5f4bdb019335b7083bd081df69 (patch) | |
tree | 9dafb219fc3720f433db6e468c89ccb6f4aafc7d /time.c | |
parent | 0ebec8cf722da3e3c1c557ae28cce8943eef0d4d (diff) | |
download | ruby-2451d735a79d7c5f4bdb019335b7083bd081df69.tar.gz |
* time.c (leap_year_v_p): fixed typo. [ruby-dev:42631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -853,7 +853,7 @@ static const char *find_time_t(struct tm *tptr, int utc_p, time_t *tp); static struct vtm *localtimew(wideval_t timew, struct vtm *result); static int leap_year_p(long y); -#define leap_year_v_p(y) leap_year_p(NUM2LONG(mod(v, INT2FIX(400)))) +#define leap_year_v_p(y) leap_year_p(NUM2LONG(mod((y), INT2FIX(400)))) #ifdef HAVE_GMTIME_R #define rb_gmtime_r(t, tm) gmtime_r(t, tm) |