From adc3d53b7bfa459a224b097abf5736855ebc0b5d Mon Sep 17 00:00:00 2001 From: Igor Khasilev Date: Sat, 17 Dec 2022 18:37:33 +0200 Subject: [PATCH] use usize in hashmap --- source/cachetools/containers/hashmap.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/cachetools/containers/hashmap.d b/source/cachetools/containers/hashmap.d index 510730c..63b61ca 100644 --- a/source/cachetools/containers/hashmap.d +++ b/source/cachetools/containers/hashmap.d @@ -760,7 +760,7 @@ struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true) { private struct _kvRange { int _pos; - ulong _buckets_num; + size_t _buckets_num; BucketStorage _buckets; this(this) { if (_buckets_num) { @@ -2094,4 +2094,4 @@ unittest { HashMap!(int, int) map; map.resize(7); assert(map.size == 8, "expected 8 got %s".format(map.size)); -} \ No newline at end of file +}