Blame SOURCES/0001-Engine-Change-overflow-thresholds-in-subscription-co.patch

545ecd
From 63c985f5afecc69eee3fe7a7e04cc8118097b3c3 Mon Sep 17 00:00:00 2001
545ecd
From: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>
545ecd
Date: Wed, 15 Aug 2018 08:46:49 +1000
545ecd
Subject: [PATCH] Engine: Change overflow thresholds in subscription counts
545ecd
 from GMAXUINT32 to GMAXUINT
545ecd
545ecd
---
545ecd
 engine/dconf-engine.c | 4 ++--
545ecd
 1 file changed, 2 insertions(+), 2 deletions(-)
545ecd
545ecd
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
545ecd
index ad891e6..dde8c18 100644
545ecd
--- a/engine/dconf-engine.c
545ecd
+++ b/engine/dconf-engine.c
545ecd
@@ -253,7 +253,7 @@ dconf_engine_move_subscriptions (GHashTable  *from_counts,
545ecd
   guint from_count = GPOINTER_TO_UINT (g_hash_table_lookup (from_counts, path));
545ecd
   guint old_to_count = GPOINTER_TO_UINT (g_hash_table_lookup (to_counts, path));
545ecd
   // Detect overflows
545ecd
-  g_assert (old_to_count <= G_MAXUINT32 - from_count);
545ecd
+  g_assert (old_to_count <= G_MAXUINT - from_count);
545ecd
   guint new_to_count = old_to_count + from_count;
545ecd
   if (from_count != 0)
545ecd
     {
545ecd
@@ -275,7 +275,7 @@ dconf_engine_inc_subscriptions (GHashTable  *counts,
545ecd
 {
545ecd
   guint old_count = GPOINTER_TO_UINT (g_hash_table_lookup (counts, path));
545ecd
   // Detect overflows
545ecd
-  g_assert (old_count < G_MAXUINT32);
545ecd
+  g_assert (old_count < G_MAXUINT);
545ecd
   guint new_count = old_count + 1;
545ecd
   g_hash_table_replace (counts, g_strdup (path), GUINT_TO_POINTER (new_count));
545ecd
   return new_count;
545ecd
-- 
545ecd
2.20.1
545ecd