From ba1719013e5bab82a2accb4aadfd8451c3ebc931 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 12:17:46 +1300 Subject: Fixed bug in Fl_Choice binding, filled small hole in Fl_Menu_Button binding --- src/c_fl_choice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/c_fl_choice.cpp') diff --git a/src/c_fl_choice.cpp b/src/c_fl_choice.cpp index e8c8374..0b7c65c 100644 --- a/src/c_fl_choice.cpp +++ b/src/c_fl_choice.cpp @@ -60,12 +60,12 @@ int fl_choice_value(CHOICE c) { return reinterpret_cast(c)->value(); } -int fl_choice_set_value(CHOICE c, int p) { - return reinterpret_cast(c)->value(p); +int fl_choice_set_value(CHOICE c, void * i) { + return reinterpret_cast(c)->value(reinterpret_cast(i)); } -int fl_choice_set_value2(CHOICE c, void * i) { - return reinterpret_cast(c)->value(reinterpret_cast(i)); +int fl_choice_set_value2(CHOICE c, int p) { + return reinterpret_cast(c)->value(p); } -- cgit