Fix mistake in Clang-Tidy bugprone-incorrect-roundings fix
Remove a `+ 0.5` that I overlooked in fb5e2f5610
.
This commit is contained in:
parent
7170f7a041
commit
d122911d10
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue