mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-01 03:16:38 +02:00
ghash: Turn mod into guint
The only signed arithmetic left is the version. Keep it at that for now but turn mod into unsigned for all other unsigned operations.
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
struct _GHashTable
|
||||
{
|
||||
guint size;
|
||||
gint mod;
|
||||
guint mod;
|
||||
guint mask;
|
||||
guint nnodes;
|
||||
guint noccupied; /* nnodes + tombstones */
|
||||
@@ -256,8 +256,7 @@ G_STATIC_ASSERT (G_ALIGNOF (GHashTableIter) >= G_ALIGNOF (RealIter));
|
||||
* then works modulo 2^n. The prime modulo is necessary to get a
|
||||
* good distribution with poor hash functions.
|
||||
*/
|
||||
static const gint prime_mod [] =
|
||||
{
|
||||
static const guint prime_mod[] = {
|
||||
1, /* For 1 << 0 */
|
||||
2,
|
||||
3,
|
||||
|
Reference in New Issue
Block a user