diff --git a/plugins/textool/TexTool.cpp b/plugins/textool/TexTool.cpp index c173c2fc..ed478628 100644 --- a/plugins/textool/TexTool.cpp +++ b/plugins/textool/TexTool.cpp @@ -37,7 +37,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){ ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" ); *loop = 0; - *ret = (int)data; + *ret = (intptr_t) data; } static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){ @@ -243,7 +243,7 @@ const char* QERPlug_Init( void* hApp, void *pWidget ){ GtkWidget* pMainWidget = static_cast( pWidget ); g_pMainWnd = pMainWidget; - size = (int)( (winding_t *)0 )->points[MAX_POINTS_ON_WINDING]; + size = (intptr_t)( (winding_t *)0 )->points[MAX_POINTS_ON_WINDING]; g_pSelectedFaceWinding = (winding_t *)malloc( size ); memset( g_pSelectedFaceWinding, 0, size ); return "Texture tools for Radiant";