You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UndoHistory.cpp: In member function ‘void UndoHistory::OnMouseWheel(wxMouseEvent&)’:
UndoHistory.cpp:379: error: call of overloaded ‘abs(const double&)’ is ambiguous
/usr/include/stdlib.h:766: note: candidates are: int abs(int)
/usr/include/c++/4.4/cstdlib:170: note: long long int __gnu_cxx::abs(long long int)
/usr/include/c++/4.4/cstdlib:139: note: long int std::abs(long int)
abs on linux system takes only int
line 379 const double linescount = (abs(rotation)
should be const double linescount = (fabs(rotation)
The text was updated successfully, but these errors were encountered:
Honestly, the easiest way to fit it to just define an abs function in that file...
double abs(double value) { return value < 0 ? -1.0 * value : value; }
UndoHistory.cpp: In member function ‘void UndoHistory::OnMouseWheel(wxMouseEvent&)’:
UndoHistory.cpp:379: error: call of overloaded ‘abs(const double&)’ is ambiguous
/usr/include/stdlib.h:766: note: candidates are: int abs(int)
/usr/include/c++/4.4/cstdlib:170: note: long long int __gnu_cxx::abs(long long int)
/usr/include/c++/4.4/cstdlib:139: note: long int std::abs(long int)
abs on linux system takes only int
line 379 const double linescount = (abs(rotation)
should be const double linescount = (fabs(rotation)
The text was updated successfully, but these errors were encountered: