From c60bf704ff192fdbff483dbf4a67716683c9b0b2 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 2 Jun 2021 23:09:45 -0500 Subject: [PATCH] chore(cpu): Ensure Cycles is the size of an u32 --- src/instruction.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instruction.rs b/src/instruction.rs index 24d0559..2f30dd7 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -118,6 +118,7 @@ pub enum JumpCondition { struct Table; #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Default)] +#[repr(transparent)] pub struct Cycle(u32); impl Instruction {