[gegl] ppm-load: Fix format strings



commit 9b64a2e0b96b19ef59faf1ee90b2986c35435a76
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Jun 22 20:13:24 2010 +0530

    ppm-load: Fix format strings

 operations/external/ppm-load.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/external/ppm-load.c b/operations/external/ppm-load.c
index 9aff65b..29b2def 100644
--- a/operations/external/ppm-load.c
+++ b/operations/external/ppm-load.c
@@ -145,8 +145,8 @@ ppm_load_read_image(FILE       *fp,
 
             for (i = 0; i < img->numsamples; i++)
               {
-                int sample;
-                retval = fscanf (fp, " %d", &sample);
+                guint sample;
+                retval = fscanf (fp, " %u", &sample);
                 *ptr++ = sample;
               }
           }
@@ -156,8 +156,8 @@ ppm_load_read_image(FILE       *fp,
 
             for (i = 0; i < img->numsamples; i++)
               {
-                int sample;
-                retval = fscanf (fp, " %d", &sample);
+                guint sample;
+                retval = fscanf (fp, " %u", &sample);
                 *ptr++ = sample;
               }
           }



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