Skip to content

Commit

Permalink
forgot an "as u32"
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoRiether committed Sep 11, 2021
1 parent 6d152d0 commit 8a00534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Memory {
}
while i+1 <= b {
// copy a byte
if has_transparent_byte(buf[i]) {
if has_transparent_byte(buf[i] as u32) {
mmio[pos + i - MMIO_START] = buf[i];
}
i += 1;
Expand Down

0 comments on commit 8a00534

Please sign in to comment.