| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 75a7eba commit 553308c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ empty_array_like(PyArrayObject *arr, npy_intp length) | |||
| 63 | 63 | ||
| 64 | 64 | template <typename T> | |
| 65 | 65 | size_t hash_integer(const T *value, npy_bool equal_nan) { | |
| 66 | - return std::hash<T>{}(*value); | ||
| 66 | + return npy_fnv1a(reinterpret_cast<const unsigned char*>(value), sizeof(T)); | ||
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | template <typename S, typename T, S (*real)(T), S (*imag)(T)> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments