build: enable -Wtype-limits

hashv is unsigned, no need to check if >= 0
This commit is contained in:
Christoph Reiter 2018-07-29 16:40:27 +02:00
parent f02e90f265
commit 7be196f295

View File

@ -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;
}
}