From 7be196f29539fb4e97277674f50e17634c6e2c35 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 29 Jul 2018 16:40:27 +0200 Subject: [PATCH] build: enable -Wtype-limits hashv is unsigned, no need to check if >= 0 --- gthash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gthash.c b/gthash.c index 2fda90359..16bfb4b8a 100644 --- a/gthash.c +++ b/gthash.c @@ -177,7 +177,7 @@ _gi_typelib_hash_builder_pack (GITypelibHashBuilder *builder, guint8* mem, guint guint32 hashv; hashv = cmph_search_packed (packed_mem, str, strlen (str)); - g_assert (hashv >= 0 && hashv < num_elts); + g_assert (hashv < num_elts); table[hashv] = strval; } }