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_menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/c_fl_menu.cpp') diff --git a/src/c_fl_menu.cpp b/src/c_fl_menu.cpp index 2ae9289..e42e985 100644 --- a/src/c_fl_menu.cpp +++ b/src/c_fl_menu.cpp @@ -153,12 +153,12 @@ int fl_menu_value(MENU m) { return static_cast(m)->value(); } -int fl_menu_set_value(MENU m, int p) { - return static_cast(m)->value(p); +int fl_menu_set_value(MENU m, void * i) { + return static_cast(m)->value(static_cast(i)); } -int fl_menu_set_value2(MENU m, void * i) { - return static_cast(m)->value(static_cast(i)); +int fl_menu_set_value2(MENU m, int p) { + return static_cast(m)->value(p); } -- cgit