final fixes

This commit is contained in:
Folkert 2023-11-18 23:10:21 +01:00
parent c019ced31d
commit eda9681982
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 6 additions and 2975 deletions

View file

@ -18,7 +18,7 @@ macro_rules! deref_number {
impl ReplAppMemory for ExpectMemory {
fn deref_bool(&self, addr: usize) -> bool {
let ptr = unsafe { self.start.add(addr) } as *const u8;
let ptr = unsafe { self.start.add(addr) };
let value = unsafe { std::ptr::read_unaligned(ptr) };
// bool values should only ever be 0 or 1