Skip to content

Commit

Permalink
Merge pull request #108 from fengjian/master
Browse files Browse the repository at this point in the history
Fix compiler warnings
  • Loading branch information
dr-orlovsky authored Feb 27, 2024
2 parents 21c2629 + 17b340b commit 23a7328
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/library/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ impl Lib {
let lib_hash = self.id();
cursor.seek(entrypoint).ok()?;

#[cfg(feature = "log")]
let mut st0 = registers.st0;

while !cursor.is_eof() {
let pos = cursor.pos();

Expand Down Expand Up @@ -352,8 +354,9 @@ impl Lib {
let c = if registers.st0 { g } else { r };
eprint!(" {d}st0={z}{c}{}{z} ", registers.st0);
}

st0 = registers.st0;
}
st0 = registers.st0;

if !registers.acc_complexity(instr) {
#[cfg(feature = "log")]
Expand Down

0 comments on commit 23a7328

Please sign in to comment.