aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-25 15:09:16 +0000
committergingerBill <bill@gingerbill.org>2018-02-25 15:09:16 +0000
commitd247ba4751d8189082849e114e3d4a6106b0d053 (patch)
tree56e023cb3006392918e2074b1d1489b06f59f4dd /src/map.cpp
parent27b7dc336ab7c108d711d6ce00686467f1f0319c (diff)
Hexadecimal floats for "perfect values" 0h42f60000 == 123; use `bit_cast` in compiler
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index a08070656..a22b4c162 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -72,7 +72,7 @@ gb_inline HashKey hash_integer(u64 u) {
}
gb_inline HashKey hash_f64(f64 f) {
HashKey h = {HashKey_Default};
- h.key = *cast(u64 *)&f;
+ h.key = bit_cast<u64>(f);
return h;
}