More guards

This commit is contained in:
Reid 'arrdem' McKenzie 2022-12-18 15:21:04 -07:00
parent da885e3984
commit d7343b901f

View file

@ -56,8 +56,8 @@ impl Memory for TrivialMemory {
Err(MemoryError::AddressOverflow)
} else {
let [high, low] = val.to_be_bytes();
self.set1(address, high);
self.set1(address + 1, low);
self.set1(address, high)?;
self.set1(address + 1, low)?;
Ok(())
}
}