From 1f8fdc6ccba65a07de9e37f766834f5243bd6654 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Wed, 9 Oct 2024 16:00:06 +0100 Subject: [PATCH] Fix type used in bytes_hashed addition `length` was changed to `bytes_hashed` and the type changed from `usize` to `u64`. The addition under the `hashes_fuzz` feature flag has been changed from `usize` to `u64` to fix the fuzz error. --- hashes/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashes/src/util.rs b/hashes/src/util.rs index 0d2b8cb2b..8cbf4b180 100644 --- a/hashes/src/util.rs +++ b/hashes/src/util.rs @@ -91,7 +91,7 @@ macro_rules! engine_input_impl( for c in inp { self.buffer[0] ^= *c; } - self.bytes_hashed += inp.len(); + self.bytes_hashed += inp.len() as u64; } ) );