From f7630dfd112882ff5b39898573984b0ae443530b Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Thu, 2 Jan 2025 00:46:50 +0530 Subject: [PATCH] test: conditionless loop? --- fuel-vm/src/interpreter/memory.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fuel-vm/src/interpreter/memory.rs b/fuel-vm/src/interpreter/memory.rs index 3b6dec7f9..193b049a6 100644 --- a/fuel-vm/src/interpreter/memory.rs +++ b/fuel-vm/src/interpreter/memory.rs @@ -1164,13 +1164,14 @@ fn slices_equal_avx2(a: &[u8], b: &[u8]) -> bool { aggregate_mask_a_b &= aggregate_mask_a & aggregate_mask_b; aggregate_mask_c_d &= aggregate_mask_c & aggregate_mask_d; - if aggregate_mask_a_b & aggregate_mask_c_d != -1i32 { - return false; - } i += CHUNK; } + if aggregate_mask_a_b & aggregate_mask_c_d != -1i32 { + return false; + } + a[i..] == b[i..] } }