mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
final fixes
This commit is contained in:
parent
c019ced31d
commit
eda9681982
5 changed files with 6 additions and 2975 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue