Skip to content

Conversation

datumbox
Copy link
Contributor

@datumbox datumbox commented Sep 1, 2021

Fixes #4181 on 0.10

Copy link
Contributor

@prabhat00155 prabhat00155 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @datumbox, a couple of minor comments.

// For libjpeg version <= 9b, the out_size parameter in jpeg_mem_dest() is
// defined as unsigned long, where as in later version, it is defined as size_t.
// For windows backward compatibility, we define JpegSizeType as different types
// according to the libjpeg version used, in order to prevent compilcation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in compilation.

// according to the libjpeg version used, in order to prevent compilcation
// errors.
#if defined(_WIN32) || !defined(JPEG_LIB_VERSION_MAJOR) || \
(JPEG_LIB_VERSION_MAJOR < 9) || \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why () around single condition?

@datumbox
Copy link
Contributor Author

datumbox commented Sep 1, 2021

Thanks for the quick review @prabhat00155. Definitely agree with your review comments.

Note that this is a cherrypick from a different PR that landed on main branch that we try to bring on v0.10.1. Do you think it would be best to make this changes on a separate PR against main branch?

@prabhat00155
Copy link
Contributor

Thanks for the quick review @prabhat00155. Definitely agree with your review comments.

Note that this is a cherrypick from a different PR that landed on main branch that we try to bring on v0.10.1. Do you think it would be best to make this changes on a separate PR against main branch?

Makes sense, I can do that, thanks!

@datumbox datumbox closed this Sep 27, 2021
@datumbox datumbox deleted the cherrypick/jpeg branch September 27, 2021 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants