ReadMostlyMainPtrDeleter
[folly.git] / folly / Hash.h
index 77f01a965cd5f334ff7fa6d91a85e23ac44a7d56..b0ae03bb764bbb3e9e0034c75969f896258c5900 100644 (file)
@@ -14,8 +14,7 @@
  * limitations under the License.
  */
 
-#ifndef FOLLY_BASE_HASH_H_
-#define FOLLY_BASE_HASH_H_
+#pragma once
 
 #include <cstdint>
 #include <cstring>
@@ -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<const signed char*>(buf);
+  const unsigned char* s = reinterpret_cast<const unsigned char*>(buf);
   uint32_t hash = static_cast<uint32_t>(len);
   uint32_t tmp;
   size_t rem;
@@ -460,5 +459,3 @@ namespace std {
     }
   };
 } // namespace std
-
-#endif