From 1afd72855318e37d0b621f2ac3934db5b9b322c7 Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Sat, 24 Aug 2024 19:25:01 +0400 Subject: [PATCH] simplify test with usize --- tests/verifier.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/verifier.rs b/tests/verifier.rs index 3898441fc..447a521c6 100644 --- a/tests/verifier.rs +++ b/tests/verifier.rs @@ -319,10 +319,7 @@ fn test_verifier_err_jmp_out_start() { else { panic!("Expected VerifierError::JumpOutOfCode") }; - #[cfg(target_arch = "wasm32")] - assert_eq!(a as u32, u32::MAX); - #[cfg(not(target_arch = "wasm32"))] - assert_eq!(a as u64, u64::MAX); + assert_eq!(a, usize::MAX); assert_eq!(b, 0); }