Skip to content

Commit

Permalink
Fix missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Aug 24, 2024
1 parent d7e7fcc commit 47d707f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/LIEF/ART/Parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define LIEF_ART_PARSER_H
#include <memory>
#include <vector>
#include <string>

#include "LIEF/ART/types.hpp"
#include "LIEF/visibility.h"
Expand Down
2 changes: 1 addition & 1 deletion src/internal_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' ');
Expand Down

0 comments on commit 47d707f

Please sign in to comment.