mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
CHERI: silence two pedantic warnings
When building for CHERI with additional warning flags, implicitly converting uintptr_t to an integer type that can't store a pointer results in a compiler warnings. Silence two of these by adding explicit casts.
This commit is contained in:
@@ -955,7 +955,7 @@ param_spec_pool_hash (gconstpointer key_spec)
|
||||
{
|
||||
const GParamSpec *key = key_spec;
|
||||
const gchar *p;
|
||||
guint h = key->owner_type;
|
||||
guint h = (guint) key->owner_type;
|
||||
|
||||
for (p = key->name; *p; p++)
|
||||
h = (h << 5) - h + *p;
|
||||
|
Reference in New Issue
Block a user