diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-30 13:44:46 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-30 13:44:46 +0530 |
| commit | 6234610252a1723467fd52527ffef3180a545ce5 (patch) | |
| tree | d21538ad5a7e2cd38e6554e29c11c40eed0b62a4 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 96e3972707a12aefd3ae3ceac71fe6009ccbb061 (diff) | |
| parent | cdc6afed389ecdcea0955eadae59ea6b008a58fe (diff) | |
| download | rust-6234610252a1723467fd52527ffef3180a545ce5.tar.gz rust-6234610252a1723467fd52527ffef3180a545ce5.zip | |
Rollup merge of #35058 - jethrogb:no_panic_abs, r=alexcrichton
Add non-panicking abs() functions to all signed integer types. Currently, calling abs() on one of the signed integer types might panic (in debug mode at least) because the absolute value of the largest negative value can not be represented in that signed type. Unlike all other integer operations, there is currently not a non-panicking version on this function. This seems to just be an oversight in the design, therefore just adding it now.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
