aboutsummaryrefslogtreecommitdiffstats
path: root/splitmemdict.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'splitmemdict.hpp')
-rw-r--r--splitmemdict.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/splitmemdict.hpp b/splitmemdict.hpp
index 730d103..73b2013 100644
--- a/splitmemdict.hpp
+++ b/splitmemdict.hpp
@@ -36,7 +36,7 @@ class SplitMemDict : public Dictionary
uint8_t extra[Dictionary::Begin];
Addr convertAddress(Addr addr) const noexcept {
- return addr < RON ? addr : static_cast<Addr>(addr - RON);
+ return static_cast<Addr>(addr - (addr >= RON) * RON);
}
public: