commit | d4be4f3171a9e7775073914d86686a75a758f18f | [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:22 2022 -0600 |
tree | 9d2f343163da34b690ccc5286587c42f4b06b3e8 | |
parent | 1167b674399d8ad7f153a800c653fcd4abd7b446 [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)