summaryrefslogtreecommitdiff
path: root/fluid/app/Snap_Action.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-04-15 14:38:37 +0200
committerMatthias Melcher <github@matthiasm.com>2025-04-15 14:38:45 +0200
commit63db80c07888e5f4dcaff3579a0d174b7df5424d (patch)
tree18c2cc13b90efe6c404dc9de9fa09b5bce1c464c /fluid/app/Snap_Action.cxx
parent76e76ba80a10bc547eff9ffb0988337193fdf534 (diff)
Fluid: avoid bad function pointer casting warning in Clang 17.
Diffstat (limited to 'fluid/app/Snap_Action.cxx')
-rw-r--r--fluid/app/Snap_Action.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/app/Snap_Action.cxx b/fluid/app/Snap_Action.cxx
index f33054eca..d67e074cb 100644
--- a/fluid/app/Snap_Action.cxx
+++ b/fluid/app/Snap_Action.cxx
@@ -140,11 +140,11 @@ void select_layout_preset_cb(Fl_Widget *, void *user_data) {
Fluid.layout_list.update_dialogs();
}
-void edit_layout_preset_cb(Fl_Button *w, long user_data) {
+void edit_layout_preset_cb(Fl_Button *w, void *user_data) {
int index = (int)w->argument();
assert(index >= 0);
assert(index < 3);
- if (user_data == (long)(fl_intptr_t)LOAD) {
+ if (user_data == LOAD) {
w->value(Fluid.layout_list.current_preset() == index);
} else {
Fluid.layout_list.current_preset(index);