From 17fa8cb6ef4424e4c7cff2439e2d52220f440660 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 3 Jan 2023 18:21:42 +0000 Subject: Add extra mutex to TypePth just in case --- src/ptr_set.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ptr_set.cpp') diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp index 303bde07e..9b8b678f8 100644 --- a/src/ptr_set.cpp +++ b/src/ptr_set.cpp @@ -1,5 +1,7 @@ template struct PtrSetEntry { + static_assert(sizeof(T) == sizeof(void *), "Key size must be pointer size"); + T ptr; MapIndex next; @@ -10,6 +12,7 @@ struct PtrSetEntry { template struct PtrSet { + Slice hashes; Array> entries; }; -- cgit v1.2.3