X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=folly%2FHash.h;h=b0ae03bb764bbb3e9e0034c75969f896258c5900;hb=c1dd3ab18408c97e52856f11d135dcb3237f29b4;hp=77f01a965cd5f334ff7fa6d91a85e23ac44a7d56;hpb=321542683a01c3f334047531e9b487f047129775;p=folly.git diff --git a/folly/Hash.h b/folly/Hash.h index 77f01a96..b0ae03bb 100644 --- a/folly/Hash.h +++ b/folly/Hash.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef FOLLY_BASE_HASH_H_ -#define FOLLY_BASE_HASH_H_ +#pragma once #include #include @@ -282,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(buf); + const unsigned char* s = reinterpret_cast(buf); uint32_t hash = static_cast(len); uint32_t tmp; size_t rem; @@ -460,5 +459,3 @@ namespace std { } }; } // namespace std - -#endif