From 5f9efcabce185ca7108008d37934cfe1b63d76fe Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 4 Mar 2024 05:50:36 -0800 Subject: [PATCH] Update json-value.c Fixes a `-Wshift-sign-overflow` warning --- json-glib/json-value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-glib/json-value.c b/json-glib/json-value.c index 77ce864..3b02c35 100644 --- a/json-glib/json-value.c +++ b/json-glib/json-value.c @@ -224,7 +224,7 @@ json_value_hash (gconstpointer key) } /* Mask out the top 3 bits of the @value_hash. */ - value_hash &= ~(7 << (sizeof (guint) * 8 - 3)); + value_hash &= ~(7u << (sizeof (guint) * 8 - 3)); return (type_hash | value_hash); }