From 29d768609375a5c9e01750a4be691b7b1c9434b5 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 12 Dec 2023 14:03:32 -0500 Subject: use specific types for handle indexes consistently --- src/memory-type-defs.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/memory-type-defs.hpp') diff --git a/src/memory-type-defs.hpp b/src/memory-type-defs.hpp index bc45160..d9d6f5e 100644 --- a/src/memory-type-defs.hpp +++ b/src/memory-type-defs.hpp @@ -3,11 +3,14 @@ #include +using PkeHandleBucketIndex_T = uint32_t; +using PkeHandleItemIndex_T = uint32_t; + struct PkeHandle { union { struct { - uint32_t bucketIndex; - uint32_t itemIndex; + PkeHandleBucketIndex_T bucketIndex; + PkeHandleItemIndex_T itemIndex; }; uint64_t hash = 0xFFFFFFFFFFFFFFFF; }; -- cgit v1.2.3