Index: webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc b/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
index 8a8d8e3d472e48b0b70c1262ad86f496bb45b273..a7237ee8511507228ee026a08e7440f522138976 100644 |
--- a/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
+++ b/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
@@ -104,7 +104,8 @@ std::pair<uint64_t, bool> ParseVarInt(std::istream& stream) { |
if (stream.eof()) { |
return std::make_pair(varint, false); |
} |
- RTC_DCHECK(0 <= byte && byte <= 255); |
+ RTC_DCHECK_GE(byte, 0); |
+ RTC_DCHECK_LE(byte, 255); |
varint |= static_cast<uint64_t>(byte & 0x7F) << (7 * bytes_read); |
if ((byte & 0x80) == 0) { |
return std::make_pair(varint, true); |