diff options
author | 2009-01-28 23:06:57 -0500 | |
---|---|---|
committer | 2009-01-28 23:06:57 -0500 | |
commit | e4094b6b4f711427285d3530ce5b77467c7f7cdc (patch) | |
tree | 823ce89db8aca0e4763e43837acdc9101309abc1 /src/lua_interface.c | |
parent | 1d8f6c9c5cec2a50d820b7c6171e4c5e8689e1e9 (diff) | |
download | textadept-e4094b6b4f711427285d3530ce5b77467c7f7cdc.tar.gz textadept-e4094b6b4f711427285d3530ce5b77467c7f7cdc.zip |
Fixed some casts for compilation on 64-bit machines.
Diffstat (limited to 'src/lua_interface.c')
-rw-r--r-- | src/lua_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c index 69033bf3..443c7a9d 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -1495,7 +1495,7 @@ static int l_cf_view_goto_buffer(lua_State *lua) { } static void t_menu_activate(GtkWidget *, gpointer menu_id) { - int id = reinterpret_cast<int>(menu_id); + int id = GPOINTER_TO_INT(menu_id); char *menu_id_str = static_cast<char*>(malloc(sizeof(char) * 12)); sprintf(menu_id_str, "%i", id); l_handle_event("menu_clicked", menu_id_str); |