diff --git a/core/src/com/google/zxing/qrcode/QRCodeReader.java b/core/src/com/google/zxing/qrcode/QRCodeReader.java index 3a9be4e84..c272d030e 100644 --- a/core/src/com/google/zxing/qrcode/QRCodeReader.java +++ b/core/src/com/google/zxing/qrcode/QRCodeReader.java @@ -138,7 +138,7 @@ public class QRCodeReader implements Reader { // Push in the "border" by half the module width so that we start // sampling in the middle of the module. Just in case the image is a // little off, this will help recover. - int nudge = Math.round(moduleSize / 2.0f); + int nudge = (int) (moduleSize / 2.0f); top += nudge; left += nudge;