From: Rust Maintainers Date: Thu, 6 Jun 2019 16:18:44 +0000 (+0100) Subject: logarithm-workaround X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf2657dae9f4b983331efe24a7702df93f08ad6e;p=cargo.git logarithm-workaround Gbp-Pq: Name logarithm-workaround.patch --- diff --git a/vendor/typenum/build/main.rs b/vendor/typenum/build/main.rs index 9c9f237cd..97c319ae1 100644 --- a/vendor/typenum/build/main.rs +++ b/vendor/typenum/build/main.rs @@ -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)));