From f217a92e7ef511500222db13ece11b9625649714 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Mon, 28 Aug 2023 22:40:06 +0200 Subject: [PATCH] Fix `portable-simd` impl --- src/portable_simd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portable_simd.rs b/src/portable_simd.rs index 1b90488..dcfce59 100644 --- a/src/portable_simd.rs +++ b/src/portable_simd.rs @@ -14,7 +14,7 @@ pub(super) unsafe fn encode(input: &[u8], output: *mut u8) { let (prefix, chunks, suffix) = input.as_simd::(); default::encode::(prefix, output); - i += prefix.len(); + i += prefix.len() * 2; let hex_table = u8x16::from_array(*crate::get_chars_table::()); for &chunk in chunks {