Skip to content

Commit

Permalink
use usize in hashmap
Browse files Browse the repository at this point in the history
  • Loading branch information
iklfst committed Dec 17, 2022
1 parent 067c08e commit adc3d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/cachetools/containers/hashmap.d
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -2094,4 +2094,4 @@ unittest {
HashMap!(int, int) map;
map.resize(7);
assert(map.size == 8, "expected 8 got %s".format(map.size));
}
}

0 comments on commit adc3d53

Please sign in to comment.