From 6d0785a78fecc58cf4bb571956547999c4d1e437 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Sat, 1 Mar 2014 10:41:46 +0000 Subject: [PATCH] [trunk] Fix compilation on MSVC compiler --- src/bin/jp2/convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) {