diff options
Diffstat (limited to 'src/processor/minidump.cc')
-rw-r--r-- | src/processor/minidump.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index cee94c42..d14f3a2c 100644 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc @@ -3747,8 +3747,8 @@ bool Minidump::ReadBytes(void* bytes, size_t count) { } stream_->read(static_cast<char*>(bytes), count); size_t bytes_read = stream_->gcount(); - if (static_cast<size_t>(bytes_read) != count) { - if (bytes_read == -1) { + if (bytes_read != count) { + if (bytes_read == size_t(-1)) { string error_string; int error_code = ErrnoString(&error_string); BPLOG(ERROR) << "ReadBytes: error " << error_code << ": " << error_string; |