summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-19 07:15:05 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-19 07:15:05 +0900
commiteb070303080b24458d3740424aa7aa8a45fa49eb (patch)
treefd66290265a16382cad6f6a6e6e98e29147ae2e4 /include
parent087e1719e45ae51b728aa8b15edd30d9ef757a98 (diff)
downloadmruby-eb070303080b24458d3740424aa7aa8a45fa49eb.tar.gz
mruby-eb070303080b24458d3740424aa7aa8a45fa49eb.zip
numeric.c: avoid integer overflow; close #5384
Since `mruby` does not have `Bignum`, `Float#divmod` could overflow, so it will return `Float` values when the divided value does not fit in `mrb_int`. This behavior will be changed when `Bignum` is introduced to `mruby` in the future.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions