Skip to content

Commit 7f00b3e

Browse files
committed
error fix #2
1 parent 60efdde commit 7f00b3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub mod binary {
5858
if self.offset >= self.buffer.len() as u32 {
5959
panic!("Error get_remaining(): No bytes left to read");
6060
} else {
61-
self.buffer[self.offset..].to_vec()
61+
self.buffer[(self.offset as usize)..].to_vec()
6262
}
6363
}
6464

0 commit comments

Comments
 (0)