]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #50185 - dmizuk:mod_euc-fix-overflow, r=kennytm
authorkennytm <kennytm@gmail.com>
Tue, 24 Apr 2018 03:57:11 +0000 (11:57 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Apr 2018 03:57:11 +0000 (11:57 +0800)
commit893774e119b3197e12c1891b39d0e1e2830a362d
treed9d69bd70bdb7985d5953b151d57a4028714640c
parent8d0c5da7e84cc7f970e9f1d04e30dcd9ecae08d8
parent104c64dc360f297fbdd4a467dac1c5006d76dece
Rollup merge of #50185 - dmizuk:mod_euc-fix-overflow, r=kennytm

core: Fix overflow in `int::mod_euc` when `self < 0 && rhs == MIN`

This commit removes usage of `abs`, which overflows when `self == MIN`.
src/libcore/tests/lib.rs