Skip to content

Commit

Permalink
Merge pull request #696 from Fettpet/signed_compare
Browse files Browse the repository at this point in the history
Add a static cast to compare unsigned with unsigned
  • Loading branch information
sergiud authored Aug 10, 2021
2 parents a063a04 + 9fce37c commit 35983c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbolize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ _START_GOOGLE_NAMESPACE_
static ssize_t ReadFromOffset(const int fd, void *buf, const size_t count,
const size_t offset) {
SAFE_ASSERT(fd >= 0);
SAFE_ASSERT(count <= std::numeric_limits<ssize_t>::max());
SAFE_ASSERT(count <= static_cast<size_t>(std::numeric_limits<ssize_t>::max()));
char *buf0 = reinterpret_cast<char *>(buf);
size_t num_bytes = 0;
while (num_bytes < count) {
Expand Down

0 comments on commit 35983c8

Please sign in to comment.