Skip to content

Commit

Permalink
More clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Jul 22, 2022
1 parent 9cbc05a commit 2d2c438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bytes/src/bytes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ to_hex(const bytes& data)
std::stringstream hex(std::ios_base::out);
hex.flags(std::ios::hex);
for (const auto& byte : data) {
hex << std::setw(2) << std::setfill('0') << int(byte);
hex << std::setw(2) << std::setfill('0') << static_cast<int>(byte);
}
return hex.str();
}
Expand Down

0 comments on commit 2d2c438

Please sign in to comment.