From d122911d109305dc4768538fdd6e9b9ce5bc130e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 7 Sep 2020 10:09:02 +0200 Subject: Fix mistake in Clang-Tidy bugprone-incorrect-roundings fix Remove a `+ 0.5` that I overlooked in fb5e2f56109e. --- source/blender/imbuf/intern/bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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); -- cgit v1.2.3