Index: base/hash.h |
diff --git a/base/hash.h b/base/hash.h |
index 97e251cdf1ed8031e1b1adc79d999fd10e303d39..7c0fba6d39e97a4b0d8a6faf9f43ab905310fc0b 100644 |
--- a/base/hash.h |
+++ b/base/hash.h |
@@ -18,16 +18,12 @@ |
namespace base { |
// WARNING: This hash function should not be used for any cryptographic purpose. |
-BASE_EXPORT uint32_t SuperFastHash(const char* data, int len); |
+BASE_EXPORT uint32_t SuperFastHash(const char* data, size_t length); |
// Computes a hash of a memory buffer |data| of a given |length|. |
// WARNING: This hash function should not be used for any cryptographic purpose. |
inline uint32_t Hash(const char* data, size_t length) { |
- if (length > static_cast<size_t>(std::numeric_limits<int>::max())) { |
- NOTREACHED(); |
- return 0; |
- } |
- return SuperFastHash(data, static_cast<int>(length)); |
+ return SuperFastHash(data, length); |
} |
// Computes a hash of a string |str|. |