Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / leveldatabase / src / include / leveldb / slice.h
index 74ea8fa..bc36798 100644 (file)
@@ -94,7 +94,7 @@ inline bool operator!=(const Slice& x, const Slice& y) {
 }
 
 inline int Slice::compare(const Slice& b) const {
-  const int min_len = (size_ < b.size_) ? size_ : b.size_;
+  const size_t min_len = (size_ < b.size_) ? size_ : b.size_;
   int r = memcmp(data_, b.data_, min_len);
   if (r == 0) {
     if (size_ < b.size_) r = -1;