From 8a0053465f7016ece881abf2983e5066a66e9914 Mon Sep 17 00:00:00 2001 From: LeoRiether Date: Sat, 11 Sep 2021 17:00:40 -0300 Subject: [PATCH] forgot an "as u32" --- src/simulator/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulator/mod.rs b/src/simulator/mod.rs index 68190c0..fd23c84 100644 --- a/src/simulator/mod.rs +++ b/src/simulator/mod.rs @@ -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;