[gimp] plug-ins: don't say for(int x...) in file-pcx.c



commit 34485cff869655fada8914245e124990d0d6d87b
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 29 18:39:41 2017 +0200

    plug-ins: don't say for(int x...) in file-pcx.c

 plug-ins/common/file-pcx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-pcx.c b/plug-ins/common/file-pcx.c
index b74ae1d..980539b 100644
--- a/plug-ins/common/file-pcx.c
+++ b/plug-ins/common/file-pcx.c
@@ -937,10 +937,11 @@ save_less_than_8 (FILE         *fp,
   gint        count         = 0;
   guchar      byte_to_write = 0x00;
   guchar     *line;
+  gint        x;
 
   line = (guchar *) g_malloc (((width + 7) / 8) * bpp);
 
-  for (gint x = 0; x < buf_size; x++)
+  for (x = 0; x < buf_size; x++)
     {
       byte_to_write |= (buf[x] << j);
       j -= bpp;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]