diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2018-12-15 18:41:21 +0100 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2018-12-15 18:41:21 +0100 |
| commit | 967b1fc3b723117d57ff27417d811747b1bf1242 (patch) | |
| tree | e0c72ab809fa3996b829b8949e51d280308f3ddf /src/test/incremental/thinlto | |
| parent | 0a1b2267e45ed0a5bdbfcbe522024729c8bd1387 (diff) | |
| download | rust-967b1fc3b723117d57ff27417d811747b1bf1242.tar.gz rust-967b1fc3b723117d57ff27417d811747b1bf1242.zip | |
Fix a small mistake regarding NaNs in a deprecation message
`max` on floats returns the other argument if one of them is NaN, which would be `0.0` in this case. This is unlike the C functions `fdim` and `fdimf` which return NaN if either of their arguments is NaN. https://doc.rust-lang.org/1.31.0/std/primitive.f32.html#method.max https://en.cppreference.com/w/c/numeric/math/fdim
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
