Fix some easy to fix CodeQL issues

This commit is contained in:
Harald Kuhr
2023-10-03 13:44:51 +02:00
parent 44bcd202e8
commit e0563ee7dd
3 changed files with 15 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ final class PredictorTransform implements Transform {
// (0,0) Black (0x000000ff) predict
raster.getDataElements(0, 0, rgba);
rgba[3] += 0xff;
rgba[3] += (byte) 0xff;
raster.setDataElements(0, 0, rgba);
byte[] predictor = new byte[4];
@@ -100,7 +100,7 @@ final class PredictorTransform implements Transform {
switch (transformType) {
case PredictorMode.BLACK:
rgba[3] += 0xff;
rgba[3] += (byte) 0xff;
break;
case PredictorMode.L:
raster.getDataElements(lX, y, predictor);