Skip to content

Commit

Permalink
deoptimize gcc 9.3 ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software committed Sep 1, 2021
1 parent 423da45 commit e6ddf05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/stream_manager/src/cpp/DisplayFloatingNumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ printNumber(
std::wstring realStr = printNumber(realpart, currentFormat, asInteger, asScalar);
strNumber.append(realStr);
strNumber.append(L" - ");
std::wstring imagStr = printNumber(abs(imagpart), currentFormat, asInteger, asScalar);
T absValue = abs(imagpart);
std::wstring imagStr = printNumber(absValue, currentFormat, asInteger, asScalar);
boost::algorithm::trim_left(imagStr);
strNumber.append(imagStr);
strNumber.append(L"i");
Expand Down

0 comments on commit e6ddf05

Please sign in to comment.