about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2018-12-15 18:41:21 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2018-12-15 18:41:21 +0100
commit967b1fc3b723117d57ff27417d811747b1bf1242 (patch)
treee0c72ab809fa3996b829b8949e51d280308f3ddf /src/test/incremental/thinlto
parent0a1b2267e45ed0a5bdbfcbe522024729c8bd1387 (diff)
downloadrust-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