Skip to content

ghash: Use unsigned types for number of nodes and occupied ones

Marco Trevisan requested to merge 3v1n0/glib:ghash-unsigned-nnodes into main

It has always been considered an unsigned value, and we also returned it straight as int in g_hash_table_size(), but it was actually used as an int.

So use the same type of g_hash_table_size(). Not using more standard unsigned not to risk that it may different from the guint typedef.


  • If this goes later than !3130 (merged) we also need to remove the unneeded (guint) cast there, or include it here otherwise

Merge request reports