Skip to content

Commit

Permalink
re-fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 29, 2024
1 parent adb1169 commit 790abd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ code:
if len > 1 {
(self.asm.instrs).push(Instr::Comment(format!("({id}").into()));
}
let start = self.asm.instrs.len();
let start = if len == 0 { 0 } else { self.asm.instrs.len() };
let mut hasher = DefaultHasher::new();
instrs.hash(&mut hasher);
let hash = hasher.finish();
Expand Down

0 comments on commit 790abd5

Please sign in to comment.