diff options
| author | Cody <cody@codyq.dev> | 2023-04-11 17:34:11 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-11 17:34:11 -0500 |
| commit | ee079d193b6644e65543c3fa02dbfcf7b4f2f9c6 (patch) | |
| tree | 80975f19a2fcbd909beee83f2000f3dcabac1d9a /crates/sloth_bytecode/macros | |
| parent | 7451bdb02d54243eb299dde55f22d3b06ac5b2f2 (diff) | |
| download | sloth-ee079d193b6644e65543c3fa02dbfcf7b4f2f9c6.tar.gz | |
Hehehe
Diffstat (limited to 'crates/sloth_bytecode/macros')
| -rw-r--r-- | crates/sloth_bytecode/macros/src/lib.rs | 2 |
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) }); |
