Skip to content

Commit

Permalink
lib: fix cursor in executing bytestr code
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 25, 2023
1 parent 34894fe commit 60036fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl Lib {
"\x1B[0m",
);

let mut cursor = Cursor::with(&self.code.bytes[..], &self.data, &self.libs);
let mut cursor = Cursor::with(&self.code, &self.data, &self.libs);

Check warning on line 318 in src/library/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/library/lib.rs#L307-L318

Added lines #L307 - L318 were not covered by tests
let lib_hash = self.id();
cursor.seek(entrypoint).ok()?;

Expand Down

0 comments on commit 60036fb

Please sign in to comment.