aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/mem_pool.c')
-rw-r--r--src/libutil/mem_pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 119ade33d..9d7c4a99a 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Vsevolod Stakhov
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -94,9 +94,9 @@ static gboolean always_malloc = FALSE;
static gsize
pool_chain_free(struct _pool_chain *chain)
{
- gint64 occupied = chain->pos - chain->begin + MIN_MEM_ALIGNMENT;
+ int64_t occupied = chain->pos - chain->begin + MIN_MEM_ALIGNMENT;
- return (occupied < (gint64) chain->slice_size ? chain->slice_size - occupied : 0);
+ return (occupied < (int64_t) chain->slice_size ? chain->slice_size - occupied : 0);
}
/* By default allocate 4Kb chunks of memory */