From 5cd41350a406a2ee8f99eeb6cba3624fa24f74da Mon Sep 17 00:00:00 2001 From: lordforever Date: Fri, 27 Sep 2024 17:49:27 +0530 Subject: [PATCH] max syntax --- crates/utils/src/helpers.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/utils/src/helpers.cairo b/crates/utils/src/helpers.cairo index d20ad8220..a6ec64c83 100644 --- a/crates/utils/src/helpers.cairo +++ b/crates/utils/src/helpers.cairo @@ -363,7 +363,7 @@ mod tests { #[test] fn test_bytes_32_words_size_edge_case() { - let max_usize = usize::MAX; + let max_usize = core::num::traits::Bounded::::MAX; assert_eq!(helpers::bytes_32_words_size(max_usize), (max_usize / 32) + 1); } }