iron261 / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Maximal unsigned short is 65535, not 65536 #460

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
static int imagetoraw_common(opj_image_t * image, void* buf, OPJ_BOOL 
big_endian)
{
  ...  Conversion of integers to unsigned short
            if(curr > 65536 ) curr = 65536; else if( curr < 0) curr = 0;
  ...
}

Original issue reported on code.google.com by alexe...@dxdy.ru on 23 Dec 2014 at 11:07

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2985.

Original comment by m.darb...@gmail.com on 23 Dec 2014 at 3:06