]> Creatis software - gdcm.git/blobdiff - src/gdcmopenjpeg/codec/convert.c
Some identation
[gdcm.git] / src / gdcmopenjpeg / codec / convert.c
index a711f9e897894e7b13702cc5efdde947814ab4cf..324a6877e80e85bea180242861eea19755414265 100644 (file)
@@ -104,7 +104,7 @@ int bmptoimage(char *filename, j2k_image_t * img, int subsampling_dx,
     File_h.bfSize = getc(IN);
     File_h.bfSize = (getc(IN) << 8) + File_h.bfSize;
     File_h.bfSize = (getc(IN) << 16) + File_h.bfSize;
-    File_h.bfSize = (getc(IN) << 24) + File_h.bfSize;
+    File_h.bfSize = (getc(IN) << 24) + File_h.bfSize;convert.c
 
     File_h.bfReserved1 = getc(IN);
     File_h.bfReserved1 = (getc(IN) << 8) + File_h.bfReserved1;
@@ -220,8 +220,8 @@ int bmptoimage(char *filename, j2k_image_t * img, int subsampling_dx,
       W = Info_h.biWidth;
       H = Info_h.biHeight;
 
-      // PAD = 4 - (3 * W) % 4;
-      // PAD = (PAD == 4) ? 0 : PAD;
+      /* PAD = 4 - (3 * W) % 4;*/
+      /* PAD = (PAD == 4) ? 0 : PAD; */
       PAD = (3 * W) % 4 ? 4 - (3 * W) % 4 : 0;
 
 
@@ -769,7 +769,7 @@ int pnmtoimage(char *filename, j2k_image_t * img, int subsampling_dx,
     }
     for (i = 0; i < w * h; i++) {
       unsigned int l;
-      fscanf(f, "%d", &l);
+      fscanf(f, "%d", &(unsigned int)l);
       fprintf(Compo0, "%c", l);
     }
     fclose(Compo0);