Skip to content

Commit

Permalink
lib: fix feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 19, 2024
1 parent bd5c1a7 commit bedd86c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/library/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,12 @@ impl Lib {

let mut cursor = Cursor::with(&self.code, &self.data, &self.libs);
let lib_id = self.id();

#[cfg(feature = "log")]
let lib_mnemonic = lib_id.to_baid64_mnemonic();
#[cfg(feature = "log")]
let lib_ref = lib_mnemonic.split_at(5).0;

if cursor.seek(entrypoint).is_err() {
registers.st0 = false;
#[cfg(feature = "log")]
Expand Down

0 comments on commit bedd86c

Please sign in to comment.