Commit: d122911d109305dc4768538fdd6e9b9ce5bc130e
Author: Sybren A. Stüvel
Date:   Mon Sep 7 10:09:02 2020 +0200
Branches: master
https://developer.blender.org/rBd122911d109305dc4768538fdd6e9b9ce5bc130e

Fix mistake in Clang-Tidy bugprone-incorrect-roundings fix

Remove a `+ 0.5` that I overlooked in fb5e2f56109e.

===================================================================

M       source/blender/imbuf/intern/bmp.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to