From 2f403e160bfb558f0c48722928f142493625ba8e Mon Sep 17 00:00:00 2001 From: jdolan Date: Sun, 7 Jul 2013 09:58:56 -0400 Subject: [PATCH] Use intptr_t for pointer offset magic in TexTool. Fixes a couple compiler warnings. --- plugins/textool/TexTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";