aboutsummaryrefslogtreecommitdiff
path: root/security/suricata/files/patch-rust_vendor_lexical-core_src_atof_algorithm_bhcomp.rs
blob: 5ab5c0f66d7b9e552867b53184ae737f5da7b194 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- rust/vendor/lexical-core/src/atof/algorithm/bhcomp.rs.orig	2021-06-19 12:41:29 UTC
+++ rust/vendor/lexical-core/src/atof/algorithm/bhcomp.rs
@@ -59,7 +59,7 @@ pub(super) fn parse_mantissa<'a, Data>(data: Data, rad
     let small_powers = Bigint::small_powers(radix);
     let count = data.mantissa_digits();
     let bits = count / integral_binary_factor(radix).as_usize();
-    let bytes = bits / Limb::BITS;
+    let bytes = bits / <Limb as Integer>::BITS;
 
     // Main loop
     let step = small_powers.len() - 2;