From 791c153aabd579f518a9b00613459cba13734797 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 6 Oct 2023 14:42:03 -0400 Subject: Memory management - ctors and dtors --- src/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/memory.cpp') diff --git a/src/memory.cpp b/src/memory.cpp index 87d5eca..360e2e2 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -126,7 +126,7 @@ uint64_t Buckets_NewHandle(std::size_t bucketBytes, uint64_t bucketItemCount, ui void Pke_DebugPrint() { printf("Memory Manager printout:\nBucket count: %li\n", bucketHead + 1); - for (long i = 0; i < bucketHead + 1; ++i) { + for (long i = 0; i <= bucketHead; ++i) { printf("- bucket #%li\n", i); printf("\tsize: %li\n", buckets[i].size); printf("\thead: %li\n", buckets[i].head); -- cgit v1.2.3