Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-09-07 11:09:02 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-07 11:09:02 +0300
commitd122911d109305dc4768538fdd6e9b9ce5bc130e (patch)
tree915d200c78aa083b76eee531dd65414616af71ed /source/blender/imbuf/intern/bmp.c
parent7170f7a0414ecded72fba3ef69e28be2be148291 (diff)
Fix mistake in Clang-Tidy bugprone-incorrect-roundings fix
Remove a `+ 0.5` that I overlooked in fb5e2f56109e.
Diffstat (limited to 'source/blender/imbuf/intern/bmp.c')
-rw-r--r--source/blender/imbuf/intern/bmp.c4
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);