summaryrefslogtreecommitdiff
path: root/snappy-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'snappy-internal.h')
-rw-r--r--snappy-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/snappy-internal.h b/snappy-internal.h
index a32eda5..c99d331 100644
--- a/snappy-internal.h
+++ b/snappy-internal.h
@@ -85,7 +85,7 @@ char* CompressFragment(const char* input,
static inline int FindMatchLength(const char* s1,
const char* s2,
const char* s2_limit) {
- DCHECK_GE(s2_limit, s2);
+ assert(s2_limit >= s2);
int matched = 0;
// Find out how long the match is. We loop over the data 64 bits at a
@@ -122,7 +122,7 @@ static inline int FindMatchLength(const char* s1,
const char* s2,
const char* s2_limit) {
// Implementation based on the x86-64 version, above.
- DCHECK_GE(s2_limit, s2);
+ assert(s2_limit >= s2);
int matched = 0;
while (s2 <= s2_limit - 4 &&