diff --git a/lib/ai/RelConst.cpp b/lib/ai/RelConst.cpp index a72cb5e..b92c1e8 100644 --- a/lib/ai/RelConst.cpp +++ b/lib/ai/RelConst.cpp @@ -300,12 +300,17 @@ std::string RelConst::str() const noexcept if(ival >= -256 && ival < 256) { uint32_t v = 0; - if(str.size() && ival > 0) - str += "+", v = ival; - if(str.size() && ival < 0) - str += "-", v = -ival; + if(ival >= 0) { + if(str.size()) + str += "+"; + v = ival; + } + else { + str += "-"; + v = -ival; + } - return str + format("%d", v); + return str + format("%d (0x%08x)", v, uval); } else { return str + format("0x%08x", uval);