[trunk] Fix compilation on MSVC compiler

This commit is contained in:
Mathieu Malaterre 2014-03-01 10:41:46 +00:00
parent ec593a2549
commit 6d0785a78f
1 changed files with 2 additions and 2 deletions

View 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++) {