summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/third_party/murmurhash3/MurmurHash3.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/third_party/murmurhash3/MurmurHash3.cpp b/src/third_party/murmurhash3/MurmurHash3.cpp
index 5250e81268d..b877baf52a3 100644
--- a/src/third_party/murmurhash3/MurmurHash3.cpp
+++ b/src/third_party/murmurhash3/MurmurHash3.cpp
@@ -83,8 +83,6 @@ FORCE_INLINE T nativeToLittle( T t )
return t;
}
-template <typename T> constexpr std::ptrdiff_t ssizeof = sizeof(T);
-
//-----------------------------------------------------------------------------
// Block read - if your platform needs to do endian-swapping or can only
// handle aligned reads, do the conversion here
@@ -92,7 +90,7 @@ template <typename T>
FORCE_INLINE T getblock( const void* p, int i )
{
T t;
- std::memcpy(&t, static_cast<const char*>(p) + i * ssizeof<T>, sizeof(T));
+ std::memcpy(&t, static_cast<const char*>(p) + i * sizeof(T), sizeof(T));
return nativeToLittle(t);
}
@@ -111,7 +109,7 @@ template <typename T>
FORCE_INLINE void putblock( void* p, int i, T t )
{
t = nativeToLittle(t);
- std::memcpy(static_cast<char*>(p) + i * ssizeof<T>, &t, sizeof(T));
+ std::memcpy(static_cast<char*>(p) + i * sizeof(T), &t, sizeof(T));
}
//-----------------------------------------------------------------------------