Index: webrtc/logging/rtc_event_log/rtc_event_log2stats.cc |
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log2stats.cc b/webrtc/logging/rtc_event_log/rtc_event_log2stats.cc |
index eb290b884579737d71f45b833fdb60899aed8334..6b21cf1a7ee50a2e15263f1540aacdb5e7388144 100644 |
--- a/webrtc/logging/rtc_event_log/rtc_event_log2stats.cc |
+++ b/webrtc/logging/rtc_event_log/rtc_event_log2stats.cc |
@@ -54,7 +54,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); |