commit | 49f3485cb58c3c57a513fe0efe00de7cf319708c | [log] [tgz] |
---|---|---|
author | Dmitry Tsarevich <dimhotepus@gmail.com> | Thu Jan 06 02:21:10 2022 +0300 |
committer | DRC <information@libjpeg-turbo.org> | Thu Jan 06 05:46:31 2022 -0600 |
tree | 4a1b92e5eaea89eb0b24e92e123a36d6d338ee3e | |
parent | 62ab99dfa4f05ab7c46d7c428a197b52a9911860 [diff] |
turbojpeg.h: Parenthesize TJSCALED() dimension arg This ensures that, for example, TJSCALED(dim0 + dim1, sf) will evaluate to (((dim0 + dim1) * sf.num + sf.denom - 1) / sf.denom) rather than ((dim0 + (dim1 * sf.num) + sf.denom - 1) / sf.denom)