From ee079d193b6644e65543c3fa02dbfcf7b4f2f9c6 Mon Sep 17 00:00:00 2001 From: Cody Date: Tue, 11 Apr 2023 17:34:11 -0500 Subject: Hehehe --- crates/sloth_bytecode/macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/sloth_bytecode/macros/src/lib.rs') diff --git a/crates/sloth_bytecode/macros/src/lib.rs b/crates/sloth_bytecode/macros/src/lib.rs index 31f462f..1690c17 100644 --- a/crates/sloth_bytecode/macros/src/lib.rs +++ b/crates/sloth_bytecode/macros/src/lib.rs @@ -97,7 +97,7 @@ fn into_bytecode_parser(instruction: &DslInstructionInput) -> TokenStream { let mut chunks = Vec::new(); for byte in 0..bytes { - let shift_amount = size - (byte + 1) * bytes; + let shift_amount = size - (byte + 1) * 8; chunks.push(quote! { ((chunk[*offset + #byte] as #arg) << #shift_amount) }); -- cgit v1.2.3