From 691f4fdf3c55298c697397ea174082c70cc3cf99 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 21 Aug 2013 23:41:08 +0200 Subject: [PATCH] Fixed warning due to pointer => int conversion --- src/gradix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gradix.c b/src/gradix.c index 5ed8c9f..7857aac 100644 --- a/src/gradix.c +++ b/src/gradix.c @@ -144,8 +144,8 @@ void check_aspects_inner_loop(gpointer data, gpointer user_data) { struct aspect_check_data *checkData = user_data; - gint outerPlanetId = (gint)g_list_nth_data(checkData->planetIdList, checkData->currentOuterPlanetId); - gint innerPlanetId = (gint)g_list_nth_data(checkData->planetIdList, checkData->currentInnerPlanetId); + gint outerPlanetId = GPOINTER_TO_INT(g_list_nth_data(checkData->planetIdList, checkData->currentOuterPlanetId)); + gint innerPlanetId = GPOINTER_TO_INT(g_list_nth_data(checkData->planetIdList, checkData->currentInnerPlanetId)); planetInfo_t *outerPlanet, *innerPlanet; planetData_t *outerPlanetData,