From cf95e998da4a59a7ec5be1bb0935b6f3ef9e8690 Mon Sep 17 00:00:00 2001 From: John Sonnenschein Date: Thu, 14 May 2020 19:31:43 -0700 Subject: [PATCH] use unsigned types for sizes in lh_table and entries --- linkhash.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/linkhash.h b/linkhash.h index 9377723..b81586d 100644 --- a/linkhash.h +++ b/linkhash.h @@ -18,7 +18,6 @@ */ #ifndef _linkhash_h_ #define _linkhash_h_ - #include "json_object.h" #ifdef __cplusplus @@ -92,7 +91,7 @@ struct lh_entry * A flag for users of linkhash to know whether or not they * need to free k. */ - int k_is_constant; + unsigned int k_is_constant; /** * The value. Use lh_entry_v() instead of accessing this directly. */ @@ -115,11 +114,11 @@ struct lh_table /** * Size of our hash. */ - int size; + size_t size; /** * Numbers of entries. */ - int count; + unsigned int count; /** * The first entry.