From 14296e2e63f793e8271825ad5d55ba47509a959b Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 21 Aug 2024 03:40:49 -0500 Subject: [PATCH] Make checkpoint hashing faster! --- src/Checkpoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Checkpoint.h b/src/Checkpoint.h index f82f7e4..f387da5 100644 --- a/src/Checkpoint.h +++ b/src/Checkpoint.h @@ -64,6 +64,6 @@ struct std::hash { std::size_t operator()(const Checkpoint&checkpoint)const { - return std::hash()((((int_fast64_t)(*(int_fast32_t*)(&checkpoint.pos.x))<<32)|*(int_fast32_t*)(&checkpoint.pos.y))); + return (int_fast64_t)(*(int_fast32_t*)(&checkpoint.pos.x))<<32|*(int_fast32_t*)(&checkpoint.pos.y); } }; \ No newline at end of file