projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27a9db
)
fix bug for negative shift value
author
Haocheng Zhang
<wqst@fb.com>
Fri, 24 Jun 2016 19:34:59 +0000
(12:34 -0700)
committer
Facebook Github Bot 2
<facebook-github-bot-2-bot@fb.com>
Fri, 24 Jun 2016 19:38:25 +0000
(12:38 -0700)
Reviewed By: luciang
Differential Revision:
D3407128
fbshipit-source-id:
2c00387d6e068f9e052f539198ae2f985d265c74
folly/Hash.h
patch
|
blob
|
history
diff --git
a/folly/Hash.h
b/folly/Hash.h
index dd61fb768a4fc863da4584936e4996c06026ebd7..b0ae03bb764bbb3e9e0034c75969f896258c5900 100644
(file)
--- a/
folly/Hash.h
+++ b/
folly/Hash.h
@@
-281,7
+281,7
@@
inline uint64_t fnv64(const std::string& str,
inline uint32_t hsieh_hash32_buf(const void* buf, size_t len) {
// forcing signed char, since other platforms can use unsigned
- const
signed char* s = reinterpret_cast<const
signed char*>(buf);
+ const
unsigned char* s = reinterpret_cast<const un
signed char*>(buf);
uint32_t hash = static_cast<uint32_t>(len);
uint32_t tmp;
size_t rem;