Skip to content

Commit

Permalink
Use C++ style casts
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed May 31, 2020
1 parent ee6e9da commit 807835c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/boutexception.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ std::string BoutException::getBacktrace() const {
void * ptr=trace[i];
if (dladdr(trace[i],&info)){
// Additionally, check whether this is the default offset for an executable
if (info.dli_fbase != (void*)0x400000)
ptr=(void*) ((size_t)trace[i]-(size_t)info.dli_fbase);
if (info.dli_fbase != reinterpret_cast<void*>(0x400000))
ptr=reinterpret_cast<void*>(reinterpret_cast<size_t>(trace[i])-reinterpret_cast<size_t>(info.dli_fbase)));
}

// Pipe stderr to /dev/null to avoid cluttering output
Expand Down

0 comments on commit 807835c

Please sign in to comment.