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

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