Skip to content

Commit

Permalink
Use std::abs instead of abs to avoid some warnings on gcc13.
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloshasta committed May 13, 2024
1 parent 8fb5514 commit 31d75bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AssemblerAlign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ using namespace shasta;

// Standard libraries.
#include "chrono.hpp"
#include <cmath>
#include <filesystem>
#include "iterator.hpp"
#include "tuple.hpp"
Expand Down Expand Up @@ -1118,7 +1119,7 @@ bool Assembler::suppressAlignment(

// Suppress the alignment if the absolute difference of the
// read meta data fields is less than delta.
return abs(r0 - r1) < int64_t(delta);
return std::abs(r0 - r1) < int64_t(delta);

}

Expand Down

0 comments on commit 31d75bf

Please sign in to comment.