mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-25 22:30:48 +00:00
6386906: Faulty rounding code in BMPImageReader.decodeRLE4()
Reviewed-by: flar, psadhukhan
This commit is contained in:
parent
a222aedf0f
commit
964b5e2fe5
@ -1655,7 +1655,7 @@ public class BMPImageReader extends ImageReader implements BMPConstants {
|
||||
|
||||
// Whenever end pixels can fit into odd number of bytes,
|
||||
// an extra padding byte will be present, so skip that.
|
||||
if ((((int)Math.ceil(end/2)) & 1) ==1 ) {
|
||||
if ((((end + 1) / 2) & 1) == 1) {
|
||||
count++;
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user