From 0d7b2344b2c0df0269a8e018efc87438a8ec510e Mon Sep 17 00:00:00 2001 From: Jim Brunner Date: Fri, 1 Nov 2024 15:16:18 -0700 Subject: [PATCH] correct type internal to kvstore (minor) (#1246) All of the internal variables related to number of dicts in the kvstore are type `int`. Not sure why these 2 items were declared as `long long`. Signed-off-by: Jim Brunner --- src/kvstore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kvstore.c b/src/kvstore.c index e92af0378..7142fa0f6 100644 --- a/src/kvstore.c +++ b/src/kvstore.c @@ -54,8 +54,8 @@ struct _kvstore { int flags; dictType *dtype; dict **dicts; - long long num_dicts; - long long num_dicts_bits; + int num_dicts; + int num_dicts_bits; list *rehashing; /* List of dictionaries in this kvstore that are currently rehashing. */ int resize_cursor; /* Cron job uses this cursor to gradually resize dictionaries (only used if num_dicts > 1). */ int allocated_dicts; /* The number of allocated dicts. */