gnucash maint: Don't do the cast-mask-cast dance on 32-bit builds, breaks them.
John Ralls
jralls at code.gnucash.org
Sat Mar 13 14:25:36 EST 2021
Updated via https://github.com/Gnucash/gnucash/commit/bc4e12dc (commit)
from https://github.com/Gnucash/gnucash/commit/22a0a854 (commit)
commit bc4e12dcdc93fc7d89cc681da43dc20c3a26b1cc
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Mar 13 11:25:01 2021 -0800
Don't do the cast-mask-cast dance on 32-bit builds, breaks them.
diff --git a/gnucash/gnome-search/search-reconciled.c b/gnucash/gnome-search/search-reconciled.c
index 1259a6659..46dcc4b05 100644
--- a/gnucash/gnome-search/search-reconciled.c
+++ b/gnucash/gnome-search/search-reconciled.c
@@ -159,8 +159,13 @@ static void
toggle_changed (GtkToggleButton *button, GNCSearchReconciled *fe)
{
gboolean is_on = gtk_toggle_button_get_active (button);
+#ifdef __LP64__
cleared_match_t value =
(cleared_match_t) ((uint64_t)g_object_get_data (G_OBJECT (button), "button-value") & 0xffffffff); // Binary mask to silence void-pointer-to-enum-cast warning.
+#else
+ cleared_match_t value =
+ (cleared_match_t)g_object_get_data (G_OBJECT (button), "button-value");
+#endif
if (is_on)
fe->value |= value;
Summary of changes:
gnucash/gnome-search/search-reconciled.c | 5 +++++
1 file changed, 5 insertions(+)
More information about the gnucash-changes
mailing list