commit | a4fae580a46c9f21d715b9fc9a60353986f617b9 | [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:26 2022 -0600 |
tree | 91295e9c9833b55d244323153a7c5bcec4e54ccc | |
parent | 3039db1450e8e7aef01e04844909858b63928f02 [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)