From d6510c8bb92e55331288bd7066e4697ca3cc9348 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sat, 29 Aug 2020 18:29:06 +0200 Subject: [PATCH] Warnings: correct cast for psppire-spread-sheet model This fixes the compiler warning: warning: wrong type argument to increment [-Wpointer-arith] --- src/ui/gui/psppire-spreadsheet-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-spreadsheet-model.c b/src/ui/gui/psppire-spreadsheet-model.c index 0bf362ae7b..e3a98cb921 100644 --- a/src/ui/gui/psppire-spreadsheet-model.c +++ b/src/ui/gui/psppire-spreadsheet-model.c @@ -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; } -- 2.30.2