diff options
Diffstat (limited to 'memdict.hpp')
-rw-r--r-- | memdict.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/memdict.hpp b/memdict.hpp index 6209f3b..b956d5d 100644 --- a/memdict.hpp +++ b/memdict.hpp @@ -32,18 +32,16 @@ public: return *reinterpret_cast<const Cell *>(dict + addr); } - virtual int write(Addr addr, Cell value) final { + virtual void write(Addr addr, Cell value) final { *reinterpret_cast<Cell *>(dict + addr) = value; - return 0; } virtual uint8_t readbyte(Addr addr) const final { return dict[addr]; } - virtual int writebyte(Addr addr, uint8_t value) final { + virtual void writebyte(Addr addr, uint8_t value) final { dict[addr] = value; - return 0; } }; |