aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_bytecode/macros
diff options
context:
space:
mode:
Diffstat (limited to 'crates/sloth_bytecode/macros')
-rw-r--r--crates/sloth_bytecode/macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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)
});