aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_bytecode/macros/src
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-04-11 17:34:11 -0500
committerCody <cody@codyq.dev>2023-04-11 17:34:11 -0500
commitee079d193b6644e65543c3fa02dbfcf7b4f2f9c6 (patch)
tree80975f19a2fcbd909beee83f2000f3dcabac1d9a /crates/sloth_bytecode/macros/src
parent7451bdb02d54243eb299dde55f22d3b06ac5b2f2 (diff)
downloadsloth-ee079d193b6644e65543c3fa02dbfcf7b4f2f9c6.tar.gz
Hehehe
Diffstat (limited to 'crates/sloth_bytecode/macros/src')
-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)
});