From: Mathieu Malaterre Date: Sat, 1 Mar 2014 10:41:46 +0000 (+0000) Subject: [trunk] Fix compilation on MSVC compiler X-Git-Tag: version.2.0.1~4^2~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d0785a78fecc58cf4bb571956547999c4d1e437;p=openjpeg [trunk] Fix compilation on MSVC compiler --- diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 4b7886df..ce7ecf2e 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -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++) {