]> git.lizzy.rs Git - rust.git/commit
fix std::f32 and std::f64 constants
authorAaron Turon <aturon@mozilla.com>
Wed, 23 Apr 2014 19:04:34 +0000 (12:04 -0700)
committerAaron Turon <aturon@mozilla.com>
Wed, 23 Apr 2014 20:15:32 +0000 (13:15 -0700)
commit266812ec5a7248edd6f65c0be1bebf09c6c31a7f
treeac5db810f7518feee992ff6f5da77bbb5a6c19b0
parentb5dd3f05fe95168b5569d0f519636149479eb6ac
fix std::f32 and std::f64 constants

Some of the constant values in std::f32 were incorrectly copied from
std::f64.  More broadly, both modules defined their constants redundantly
in two places, which is what led to the bug.  Moreover, the specs for
some of the constants were incorrent, even when the values were correct.

Closes #13297.  Closes #11537.
src/libstd/num/f32.rs
src/libstd/num/f64.rs
src/libstd/num/mod.rs