From 47d707f3a556f927cf95ad8326ff0818a44ca33a Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sat, 24 Aug 2024 09:43:02 +0200 Subject: [PATCH] Fix missing include --- include/LIEF/ART/Parser.hpp | 1 + src/internal_utils.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/LIEF/ART/Parser.hpp b/include/LIEF/ART/Parser.hpp index da254517ff..4a393b9523 100644 --- a/include/LIEF/ART/Parser.hpp +++ b/include/LIEF/ART/Parser.hpp @@ -17,6 +17,7 @@ #define LIEF_ART_PARSER_H #include #include +#include #include "LIEF/ART/types.hpp" #include "LIEF/visibility.h" diff --git a/src/internal_utils.cpp b/src/internal_utils.cpp index f8695d28e6..9845deb98a 100644 --- a/src/internal_utils.cpp +++ b/src/internal_utils.cpp @@ -81,7 +81,7 @@ std::string dump(const uint8_t* buffer, size_t size, rhs += pretty_hex((char)(buffer[i])); out += fmt::format("{:02x} ", buffer[i]); - if (i % 16 == 15 or i == (size - 1)) { + if (i % 16 == 15 || i == (size - 1)) { if (i == (size - 1)) { out += std::string(((16 - ((size - 1) % 16) - 1)) * 3, ' '); rhs += std::string(((16 - ((size - 1) % 16) - 1)) * 1, ' ');