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

Remove a `+ 0.5` that I overlooked in fb5e2f5610.
This commit is contained in:
Sybren A. Stüvel 2020-09-07 10:09:02 +02:00
parent 7170f7a041
commit d122911d10
1 changed files with 2 additions and 2 deletions

View File

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