diff options
Diffstat (limited to 'src/hash_map.h')
-rw-r--r-- | src/hash_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash_map.h b/src/hash_map.h index 15e86da..ff2f7ba 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -55,16 +55,16 @@ using stdext::hash_compare; struct StringPieceCmp : public hash_compare<StringPiece> { size_t operator()(const StringPiece& key) const { - return MurmurHash2(key.str_, key.len_); + return MurmurHash2(key.str(), key.len()); } bool operator()(const StringPiece& a, const StringPiece& b) const { - int cmp = strncmp(a.str_, b.str_, min(a.len_, b.len_)); + int cmp = strncmp(a.str(), b.str(), min(a.len(), b.len())); if (cmp < 0) { return true; } else if (cmp > 0) { return false; } else { - return a.len_ < b.len_; + return a.len() < b.len(); } } }; |