Use lowercase for cmake commands consistenly
[openjpeg.git] / src / bin / jp2 / convertbmp.c
index a09c0ae58fdc7c8a5d64bbb32e22a485628494ba..d264823f09bcb36d667bbbc0be50228d7391b06f 100644 (file)
@@ -967,7 +967,7 @@ int imagetobmp(opj_image_t * image, const char *outfile) {
             fprintf(fdest, "%c", (OPJ_UINT8)r);
 
             if ((i + 1) % w == 0) {
-                for ((pad = w % 4) ? (4 - w % 4) : 0; pad > 0; pad--)  /* ADD */
+                for (pad = (w % 4) ? (4 - w % 4) : 0; pad > 0; pad--)  /* ADD */
                     fprintf(fdest, "%c", 0);
             }
         }