diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 12:34:30 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 12:34:30 +0000 |
commit | 685597fdc1ed01ceafae840870ba455037812dad (patch) | |
tree | 04327634d49ef80af42c015bb39f43c729f38a41 /time.c | |
parent | 319dc9f6c6e54da0e0c340ace57db1de4606b762 (diff) |
Fix the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2231,7 +2231,7 @@ time_overflow_p(time_t *secp, long *nsecp) } if (nsec < 0) { /* nsec negative overflow */ sec2 = NDIV(nsec,1000000000); /* negative div */ - if (sec < TIMET_MAX - sec2) { + if (sec < TIMET_MIN - sec2) { rb_raise(rb_eRangeError, "out of Time range"); } nsec = NMOD(nsec,1000000000); /* negative mod */ |