From: Friedrich Beckmann Date: Sun, 30 Aug 2020 11:50:14 +0000 (+0200) Subject: psppire-spread-sheetmodel.c: modified userdata increment using GPOINTER_TO_INT X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=128c446077dc1f14768d4eba73c5835f4fa0414c;p=pspp psppire-spread-sheetmodel.c: modified userdata increment using GPOINTER_TO_INT --- diff --git a/src/ui/gui/psppire-spreadsheet-model.c b/src/ui/gui/psppire-spreadsheet-model.c index e0173c6add..d946197262 100644 --- a/src/ui/gui/psppire-spreadsheet-model.c +++ b/src/ui/gui/psppire-spreadsheet-model.c @@ -201,7 +201,7 @@ tree_model_iter_next (GtkTreeModel *model, GtkTreeIter *iter) return FALSE; } - iter->user_data = (void *) ((intptr_t)(iter->user_data) + 1); + iter->user_data = GINT_TO_POINTER (GPOINTER_TO_INT (iter->user_data) + 1); return TRUE; }