Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximal unsigned short is 65535, not 65536 #460

Closed
gcode-importer opened this issue Dec 23, 2014 · 1 comment
Closed

Maximal unsigned short is 65535, not 65536 #460

gcode-importer opened this issue Dec 23, 2014 · 1 comment

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 460

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;
  ...
}

Reported by [email protected] on 2014-12-23 11:07:06

@gcode-importer
Copy link
Author

This issue was closed by revision r2985.

Reported by mayeut on 2014-12-23 15:06:27

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant