From 31d75bf7e785a0d7f5c80e828237e6f4586195f1 Mon Sep 17 00:00:00 2001 From: Paolo Carnevali Date: Mon, 13 May 2024 09:45:40 -0700 Subject: [PATCH] Use std::abs instead of abs to avoid some warnings on gcc13. --- src/AssemblerAlign.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AssemblerAlign.cpp b/src/AssemblerAlign.cpp index 88990f70..19b25fde 100644 --- a/src/AssemblerAlign.cpp +++ b/src/AssemblerAlign.cpp @@ -16,6 +16,7 @@ using namespace shasta; // Standard libraries. #include "chrono.hpp" +#include #include #include "iterator.hpp" #include "tuple.hpp" @@ -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); }