diff --git a/src/memory.rs b/src/memory.rs index 534364c..bb47e8d 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -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(()) } }