aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 12:34:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 12:34:30 +0000
commit685597fdc1ed01ceafae840870ba455037812dad (patch)
tree04327634d49ef80af42c015bb39f43c729f38a41 /time.c
parent319dc9f6c6e54da0e0c340ace57db1de4606b762 (diff)
downloadruby-685597fdc1ed01ceafae840870ba455037812dad.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index de914e36e3..51d7581e01 100644
--- a/time.c
+++ b/time.c
@@ -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 */