From 925c3094c4a7daaf85975a9737e89036b433c444 Mon Sep 17 00:00:00 2001 From: costan Date: Thu, 3 Jan 2019 20:39:15 -0800 Subject: [PATCH] Convert DCHECK to assert. The open source build does not support DCHECK, and this project uses assert() instead of DCHECK. --- snappy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappy.cc b/snappy.cc index b7dcdaa..e993c13 100644 --- a/snappy.cc +++ b/snappy.cc @@ -693,8 +693,8 @@ static inline void Report(const char *algorithm, size_t compressed_size, // }; static inline uint32 ExtractLowBytes(uint32 v, int n) { - DCHECK_GE(n, 0); - DCHECK_LE(n, 4); + assert(n >= 0); + assert(n <= 4); // TODO(b/121042345): Remove !defined(MEMORY_SANITIZER) once MSan // handles _bzhi_u32() correctly. #if defined(__BMI2__) && !defined(MEMORY_SANITIZER)