diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 08:20:12 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 10:38:53 +0200 |
| commit | 39670daf26c4fbbfe9148dec30c9f0e075eff404 (patch) | |
| tree | 50778183928c5aad1a9308a86852bb4a68581b30 /src/point.cpp | |
| parent | 63edd105d758a39b856f9099b339de30895df8ac (diff) | |
improve hash api and hash test
Diffstat (limited to 'src/point.cpp')
| -rw-r--r-- | src/point.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/point.cpp b/src/point.cpp index 1c62b2ad..6cd2903b 100644 --- a/src/point.cpp +++ b/src/point.cpp @@ -8,13 +8,7 @@ size_t point::hash() const { constexpr size_t size = 2 * 2 + 1 + 1 + 2; static_assert(sizeof *this == size); -#ifdef FLOORMAT_64 - static_assert(sizeof nullptr > 4); - return hash_64(this, sizeof *this); -#else - static_assert(sizeof nullptr == 4); - return hash_32(this, sizeof *this); -#endif + return hash_buf(this, sizeof *this); } Debug& operator<<(Debug& dbg, const point& pt) |
