projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e92296
)
Try to simplify d1e6a29 a bit.
author
Nico Weber
<nicolasweber@gmx.de>
Sun, 4 Jan 2015 02:50:32 +0000
(18:50 -0800)
committer
Nico Weber
<nicolasweber@gmx.de>
Sun, 4 Jan 2015 03:14:41 +0000
(19:14 -0800)
src/hash_map.h
patch
|
blob
|
history
diff --git
a/src/hash_map.h
b/src/hash_map.h
index
b57a631
..
abdba92
100644
(file)
--- a/
src/hash_map.h
+++ b/
src/hash_map.h
@@
-57,10
+57,10
@@
namespace std {
template<>
struct hash<StringPiece> {
typedef StringPiece argument_type;
- typedef s
td::s
ize_t result_type;
+ typedef size_t result_type;
-
result_type operator()(argument_type const& s
) const {
- return MurmurHash2(
s.str_, s
.len_);
+
size_t operator()(StringPiece key
) const {
+ return MurmurHash2(
key.str_, key
.len_);
}
};
}