ui/gtk/list.c

changeset 445
5059f2435775
parent 440
7c4b9cba09ca
child 446
535089a269c8
--- a/ui/gtk/list.c	Mon Jan 13 22:47:44 2025 +0100
+++ b/ui/gtk/list.c	Mon Jan 13 22:50:38 2025 +0100
@@ -614,8 +614,8 @@
                     }
                     case UI_INTEGER: {
                         g_value_init(&value, G_TYPE_INT);
-                        int *intptr = data;
-                        g_value_set_int(&value, *intptr);
+                        intptr_t intptr = (intptr_t)data;
+                        g_value_set_int(&value, (int)intptr);
                         break;
                     }
                     case UI_ICON: {

mercurial