Warnings: correct cast for psppire-spread-sheet model
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 29 Aug 2020 16:29:06 +0000 (18:29 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 29 Aug 2020 17:00:59 +0000 (19:00 +0200)
This fixes the compiler warning:
warning: wrong type argument to increment [-Wpointer-arith]

src/ui/gui/psppire-spreadsheet-model.c

index 0bf362ae7bd23c565b5964d84190b3b4a381ce6b..e3a98cb9211a6de69f241e498886b4162f107ad3 100644 (file)
@@ -202,7 +202,7 @@ tree_model_iter_next (GtkTreeModel *model, GtkTreeIter *iter)
       return FALSE;
     }
 
-  iter->user_data++;
+  iter->user_data = (void *) ((intptr_t)(iter->user_data) + 1);
 
   return TRUE;
 }