about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-04-17 15:24:35 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-04-17 15:24:35 +0000
commit9f6b787a8ffebe957b15232009ab1b8507406858 (patch)
treee1d4511a7f61e73b6c4283963b6308821467fad4
parent2b398bac6127e1512be09eca1e1d67559c32c7c6 (diff)
downloadnetpbm-mirror-9f6b787a8ffebe957b15232009ab1b8507406858.tar.gz
netpbm-mirror-9f6b787a8ffebe957b15232009ab1b8507406858.tar.xz
netpbm-mirror-9f6b787a8ffebe957b15232009ab1b8507406858.zip
Fix bug from previous commit
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2465 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/ppm/ppmtoarbtxt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/converter/ppm/ppmtoarbtxt.c b/converter/ppm/ppmtoarbtxt.c
index 93b3605b..4a1ee10f 100644
--- a/converter/ppm/ppmtoarbtxt.c
+++ b/converter/ppm/ppmtoarbtxt.c
@@ -225,8 +225,9 @@ writeIcol(FILE *           const ofP,
     */
 
     struct Icdat * const icdataP = &objectP->odata.icolData;
-    unsigned int const outValue = icdataP->icolmin +
-        ROUNDU(((double) icdataP->icolmax - icdataP->icolmin) * value);
+    unsigned int const outValue =
+        ROUNDU( icdataP->icolmin +
+                ((double)icdataP->icolmax - icdataP->icolmin) * value);
 
     fprintf(ofP, icdataP->icformat, outValue);
 }