From ccb2cbef3aa60e19da135bba01ac4aba7697661d Mon Sep 17 00:00:00 2001 From: "dgrogan@chromium.org" Date: Wed, 20 Apr 2011 22:50:04 +0000 Subject: [PATCH] fix build on at least linux git-svn-id: https://leveldb.googlecode.com/svn/trunk@25 62dab493-f737-651d-591e-8d6aee1b9529 --- table/block.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/block.cc b/table/block.cc index 92b28776d..c20bb38ce 100644 --- a/table/block.cc +++ b/table/block.cc @@ -62,7 +62,7 @@ static inline const char* DecodeEntry(const char* p, const char* limit, if ((p = GetVarint32Ptr(p, limit, value_length)) == NULL) return NULL; } - if (static_cast(limit - p) < (*non_shared + *value_length)) { + if (static_cast(limit - p) < (*non_shared + *value_length)) { return NULL; } return p;