diff --git a/src/sys/boutexception.cxx b/src/sys/boutexception.cxx index 1f25c32ea9..edede438c9 100644 --- a/src/sys/boutexception.cxx +++ b/src/sys/boutexception.cxx @@ -54,7 +54,8 @@ std::string BoutException::getBacktrace() const { if (dladdr(trace[i],&info)){ // Additionally, check whether this is the default offset for an executable if (info.dli_fbase != reinterpret_cast(0x400000)) - ptr=reinterpret_cast(reinterpret_cast(trace[i])-reinterpret_cast(info.dli_fbase)); + ptr = reinterpret_cast(reinterpret_cast(trace[i]) + - reinterpret_cast(info.dli_fbase)); } // Pipe stderr to /dev/null to avoid cluttering output