From 3232e17b68b61aa4e0ad8755594b8dd5087abf6b Mon Sep 17 00:00:00 2001 From: Neal Kruis Date: Fri, 5 Jun 2020 12:36:59 -0600 Subject: [PATCH] Make conversion to unsigned int explicit. --- Source/bucketalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/bucketalloc.c b/Source/bucketalloc.c index 420ebab..79e419f 100755 --- a/Source/bucketalloc.c +++ b/Source/bucketalloc.c @@ -55,14 +55,14 @@ struct BucketAlloc static int CreateBucket( struct BucketAlloc* ba ) { - size_t size; + unsigned int size; Bucket* bucket; void* freelist; unsigned char* head; unsigned char* it; // Allocate memory for the bucket - size = sizeof(Bucket) + ba->itemSize * ba->bucketSize; + size = (unsigned int)sizeof(Bucket) + ba->itemSize * ba->bucketSize; bucket = (Bucket*)ba->alloc->memalloc( ba->alloc->userData, size ); if ( !bucket ) return 0;