From bf2657dae9f4b983331efe24a7702df93f08ad6e Mon Sep 17 00:00:00 2001 From: Rust Maintainers Date: Thu, 6 Jun 2019 17:18:44 +0100 Subject: [PATCH] logarithm-workaround Gbp-Pq: Name logarithm-workaround.patch --- vendor/typenum/build/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); -- 2.30.2