From: Václav Slavík Date: Sat, 26 Mar 2011 18:09:58 +0000 (+0000) Subject: Compilation fix for r67312: add explicit cast to GtkStateType. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d58a44c371ecb90de9121b3560cedff81a927d2c?ds=sidebyside Compilation fix for r67312: add explicit cast to GtkStateType. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/private/compat.h b/include/wx/gtk/private/compat.h index df26d5e32f..9e1db828f3 100644 --- a/include/wx/gtk/private/compat.h +++ b/include/wx/gtk/private/compat.h @@ -115,7 +115,7 @@ #if !GTK_CHECK_VERSION(2,18,0) inline GtkStateType wx_gtk_widget_get_state(GtkWidget *widget) { - return GTK_WIDGET_STATE(widget); + return (GtkStateType)GTK_WIDGET_STATE(widget); } #define gtk_widget_get_state wx_gtk_widget_get_state #endif