Merge branch 'master' into 'master'

ghash: Fix out-of-range use of signed integer

Closes #1570

See merge request GNOME/glib!399
This commit is contained in:
Hans Petter Jansson 2018-10-12 20:20:59 +00:00
commit 035975da09

View File

@ -691,7 +691,7 @@ get_status_bit (const guint32 *bitmap, guint index)
static inline void
set_status_bit (guint32 *bitmap, guint index)
{
bitmap[index / 32] |= 1 << (index % 32);
bitmap[index / 32] |= 1U << (index % 32);
}
/* By calling dedicated resize functions for sets and maps, we avoid 2x