diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-21 22:04:20 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-21 22:04:20 +0900 |
| commit | 2268405fe62037c1b12c93e18f2307bc82840ae5 (patch) | |
| tree | 96b935d444879de6b51d4a9e40a5493093c09fd1 /mrbgems/mruby-math | |
| parent | bf11f87599debd0fb808dfb3724ff6c513b28a27 (diff) | |
| download | mruby-2268405fe62037c1b12c93e18f2307bc82840ae5.tar.gz mruby-2268405fe62037c1b12c93e18f2307bc82840ae5.zip | |
test/math.rb: `10**30` could cause integer overflow; ref #5420
Diffstat (limited to 'mrbgems/mruby-math')
| -rw-r--r-- | mrbgems/mruby-math/test/math.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-math/test/math.rb b/mrbgems/mruby-math/test/math.rb index 6ea06151c..4db63bbf9 100644 --- a/mrbgems/mruby-math/test/math.rb +++ b/mrbgems/mruby-math/test/math.rb @@ -60,7 +60,7 @@ end assert('Math.log10') do assert_float(0.0, Math.log10(1)) assert_float(1.0, Math.log10(10)) - assert_float(30.0, Math.log10(10**30)) + assert_float(30.0, Math.log10(10.0**30)) end assert('Math.sqrt') do |
