logarithm-workaround
authorRust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 6 Jun 2019 16:18:44 +0000 (17:18 +0100)
committerPeter Micheal Green <plugwash@raspbian.org>
Thu, 6 Jun 2019 16:18:44 +0000 (17:18 +0100)
Gbp-Pq: Name logarithm-workaround.patch

vendor/typenum/build/main.rs

index 9c9f237cd6587694b7c6a4dbe9ebe2cb50f585f9..97c319ae1920e5ff4b748e76dca5fda8bcdb2e23 100644 (file)
@@ -77,8 +77,8 @@ pub fn no_std() {}
 fn main() {
     let highest: u64 = 1024;
 
-    let first2: u32 = (highest as f64).log(2.0) as u32 + 1;
-    let first10: u32 = (highest as f64).log(10.0) as u32 + 1;
+    let first2: u32 = 11;//(highest as f64).log(2.0) as u32 + 1;
+    let first10: u32 = 4;//(highest as f64).log(10.0) as u32 + 1;
     let uints = (0..(highest + 1))
         .chain((first2..64).map(|i| 2u64.pow(i)))
         .chain((first10..20).map(|i| 10u64.pow(i)));