diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-09-07 11:09:02 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-09-07 11:09:02 +0300 |
commit | d122911d109305dc4768538fdd6e9b9ce5bc130e (patch) | |
tree | 915d200c78aa083b76eee531dd65414616af71ed /source/blender | |
parent | 7170f7a0414ecded72fba3ef69e28be2be148291 (diff) |
Fix mistake in Clang-Tidy bugprone-incorrect-roundings fix
Remove a `+ 0.5` that I overlooked in fb5e2f56109e.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/intern/bmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/bmp.c b/source/blender/imbuf/intern/bmp.c index 0b185f3442a..ab818d451d6 100644 --- a/source/blender/imbuf/intern/bmp.c +++ b/source/blender/imbuf/intern/bmp.c @@ -329,8 +329,8 @@ int imb_savebmp(ImBuf *ibuf, const char *filepath, int UNUSED(flags)) putShortLSB(is_grayscale ? 8 : 24, ofile); putIntLSB(0, ofile); putIntLSB(bytesize, ofile); - putIntLSB(round(ibuf->ppm[0] + 0.5), ofile); - putIntLSB(round(ibuf->ppm[1] + 0.5), ofile); + putIntLSB(round(ibuf->ppm[0]), ofile); + putIntLSB(round(ibuf->ppm[1]), ofile); putIntLSB(0, ofile); putIntLSB(0, ofile); |