[glib: 4/8] Fix signedness warning in tests/memchunks.c
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/8] Fix signedness warning in tests/memchunks.c
- Date: Fri, 7 May 2021 06:49:28 +0000 (UTC)
commit 00a15152f39943413ca9ed107e6f5870fa227075
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri Nov 20 23:17:07 2020 +0100
Fix signedness warning in tests/memchunks.c
tests/memchunks.c: In function ‘old_mem_chunk_new’:
tests/memchunks.c:140:35: error: comparison of integer expressions of different signedness: ‘gulong’ {aka
‘long unsigned int’} and ‘gint’ {aka ‘int’}
140 | g_return_val_if_fail (area_size >= atom_size, NULL);
| ^~
tests/memchunks.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/memchunks.c b/tests/memchunks.c
index fae7c4107..f574ed8b0 100644
--- a/tests/memchunks.c
+++ b/tests/memchunks.c
@@ -49,7 +49,7 @@ static guint mem_chunk_recursion = 0;
/* --- old memchunk prototypes --- */
GMemChunk* old_mem_chunk_new (const gchar *name,
- gint atom_size,
+ gulong atom_size,
gulong area_size,
gint type);
void old_mem_chunk_destroy (GMemChunk *mem_chunk);
@@ -129,7 +129,7 @@ static GMemChunk *mem_chunks = NULL;
GMemChunk*
old_mem_chunk_new (const gchar *name,
- gint atom_size,
+ gulong atom_size,
gulong area_size,
gint type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]