diff options
Diffstat (limited to 'src/c_fl_menu.cpp')
-rw-r--r-- | src/c_fl_menu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<Fl_Menu_*>(m)->value(); } -int fl_menu_set_value(MENU m, int p) { - return static_cast<Fl_Menu_*>(m)->value(p); +int fl_menu_set_value(MENU m, void * i) { + return static_cast<Fl_Menu_*>(m)->value(static_cast<Fl_Menu_Item*>(i)); } -int fl_menu_set_value2(MENU m, void * i) { - return static_cast<Fl_Menu_*>(m)->value(static_cast<Fl_Menu_Item*>(i)); +int fl_menu_set_value2(MENU m, int p) { + return static_cast<Fl_Menu_*>(m)->value(p); } |