]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Fix compilation on MSVC compiler
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 1 Mar 2014 10:41:46 +0000 (10:41 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 1 Mar 2014 10:41:46 +0000 (10:41 +0000)
src/bin/jp2/convert.c

index 4b7886df0c8ba1ecdf005ec1c00c2594cdabba0d..ce7ecf2ebe6fc2000403827f4dd8d42c8d175dca 100644 (file)
@@ -3118,7 +3118,7 @@ static int imagetoraw_common(opj_image_t * image, const char *outfile, OPJ_BOOL
         {
             if(image->comps[compno].sgnd == 1)
             {
-                union { signed short val; signed char vals[2] } uc;
+                union { signed short val; signed char vals[2]; } uc;
                 mask = (1 << image->comps[compno].prec) - 1;
                 ptr = image->comps[compno].data;
                 for (line = 0; line < h; line++) {
@@ -3137,7 +3137,7 @@ static int imagetoraw_common(opj_image_t * image, const char *outfile, OPJ_BOOL
             }
             else if(image->comps[compno].sgnd == 0)
             {
-                union { unsigned short val; unsigned char vals[2] } uc;
+                union { unsigned short val; unsigned char vals[2]; } uc;
                 mask = (1 << image->comps[compno].prec) - 1;
                 ptr = image->comps[compno].data;
                 for (line = 0; line < h; line++) {