[gegl] ppm-save: Fix format strings



commit 3c9fe638def7723803493a6644d2bd0d5475eb32
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Jun 22 20:13:38 2010 +0530

    ppm-save: Fix format strings

 operations/external/ppm-save.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/external/ppm-save.c b/operations/external/ppm-save.c
index 0c92130..04d3f6c 100644
--- a/operations/external/ppm-save.c
+++ b/operations/external/ppm-save.c
@@ -87,7 +87,7 @@ ppm_save_write(FILE    *fp,
 
           for (i = 0; i < numsamples; i++)
             {
-              fprintf (fp, "%3d ", (int) *ptr++);
+              fprintf (fp, "%u ", (unsigned int) *ptr++);
               if ((i + 1) % (width * CHANNEL_COUNT) == 0)
                 fprintf (fp, "\n");
             }
@@ -98,7 +98,7 @@ ppm_save_write(FILE    *fp,
 
           for (i = 0; i < numsamples; i++)
             {
-              fprintf (fp, "%3d ", (int) *ptr++);
+              fprintf (fp, "%u ", (unsigned int) *ptr++);
               if ((i + 1) % (width * CHANNEL_COUNT) == 0)
                 fprintf (fp, "\n");
             }



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