Fix the dumbest bug in the universe

This commit is contained in:
scawful
2024-01-31 18:00:37 -05:00
parent c59f354450
commit adb7f0666e
5 changed files with 34 additions and 29 deletions

View File

@@ -411,7 +411,7 @@ class ROM : public core::ExperimentFlags {
return absl::OkStatus();
}
absl::Status WriteShort(uint32_t addr, uint16_t value) {
absl::Status WriteShort(int addr, uint16_t value) {
if (addr + 1 >= rom_data_.size()) {
return absl::InvalidArgumentError(absl::StrFormat(
"Attempt to write short %#04x value failed, address %d out of range",