Skip to content

Commit 291c037

Browse files
committed
ensure bytecode::Instruction never grows more than 8bytes
1 parent 1cb6925 commit 291c037

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bytecode/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ num-complex = { version = "0.4.0", features = ["serde"] }
1717
serde = { version = "1.0.136", features = ["derive"] }
1818
itertools = "0.10.3"
1919
bstr = "0.2.17"
20+
static_assertions = "1.1.0"

bytecode/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ pub enum Instruction {
401401
i: u32,
402402
},
403403
}
404+
static_assertions::assert_eq_size!(Instruction, u64);
404405

405406
use self::Instruction::*;
406407

0 commit comments

Comments
 (0)