Fixed warning due to pointer => int conversion

This commit is contained in:
Gergely Polonkai 2013-08-21 23:41:08 +02:00
parent 51129fa412
commit 691f4fdf3c

View File

@ -144,8 +144,8 @@ void
check_aspects_inner_loop(gpointer data, gpointer user_data) check_aspects_inner_loop(gpointer data, gpointer user_data)
{ {
struct aspect_check_data *checkData = user_data; struct aspect_check_data *checkData = user_data;
gint outerPlanetId = (gint)g_list_nth_data(checkData->planetIdList, checkData->currentOuterPlanetId); gint outerPlanetId = GPOINTER_TO_INT(g_list_nth_data(checkData->planetIdList, checkData->currentOuterPlanetId));
gint innerPlanetId = (gint)g_list_nth_data(checkData->planetIdList, checkData->currentInnerPlanetId); gint innerPlanetId = GPOINTER_TO_INT(g_list_nth_data(checkData->planetIdList, checkData->currentInnerPlanetId));
planetInfo_t *outerPlanet, planetInfo_t *outerPlanet,
*innerPlanet; *innerPlanet;
planetData_t *outerPlanetData, planetData_t *outerPlanetData,