diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-30 03:24:55 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-30 03:24:55 +0000 |
commit | 3bcb4ff810b9250e12be89156c62497f183648c9 (patch) | |
tree | 32d18f76f0a2ee64ba77f8f41f2aa6e9acb7d177 | |
parent | 5ba404f4b0f14fb091b422a7ba2ded9af5b7856b (diff) | |
download | ruby-3bcb4ff810b9250e12be89156c62497f183648c9.tar.gz |
hrtime.h: fix typo in non-builtin overflow check
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | hrtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ rb_hrtime_mul(rb_hrtime_t a, rb_hrtime_t b) if (__builtin_mul_overflow(a, b, &c)) return RB_HRTIME_MAX; #else - if (b != 0 && b > RB_HRTIME_MAX / b) /* overflow */ + if (b != 0 && a > RB_HRTIME_MAX / b) /* overflow */ return RB_HRTIME_MAX; c = a * b; #endif |