More guards
This commit is contained in:
parent
da885e3984
commit
d7343b901f
1 changed files with 2 additions and 2 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue