Breakpad processor: Use unsigned constants in comparisons, to quiet compiler warnings.
This patch avoids comparisons between signed and unsigned values, as warned about by G++ 4.4.1. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@469 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0468306245
commit
5ebd6507e3
3 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue