diff --git a/core/src/main/java/com/google/zxing/pdf417/decoder/ec/ModulusGF.java b/core/src/main/java/com/google/zxing/pdf417/decoder/ec/ModulusGF.java index cc50fe1fb..535ba02f2 100644 --- a/core/src/main/java/com/google/zxing/pdf417/decoder/ec/ModulusGF.java +++ b/core/src/main/java/com/google/zxing/pdf417/decoder/ec/ModulusGF.java @@ -43,7 +43,7 @@ public final class ModulusGF { expTable[i] = x; x = (x * generator) % modulus; } - for (int i = 0; i < modulus - e1; i++) { + for (int i = 0; i < modulus - 1; i++) { logTable[expTable[i]] = i; } // logTable[0] == 0 but this should never be used