diff --git a/c/qrcodegen.c b/c/qrcodegen.c index cfb7eb1..2d1240d 100644 --- a/c/qrcodegen.c +++ b/c/qrcodegen.c @@ -117,8 +117,8 @@ testable const int8_t NUM_ERROR_CORRECTION_BLOCKS[4][41] = { }; // For automatic mask pattern selection. -static const int PENALTY_N1 = 3; -static const int PENALTY_N2 = 3; +static const int PENALTY_N1 = 3; +static const int PENALTY_N2 = 3; static const int PENALTY_N3 = 40; static const int PENALTY_N4 = 10; diff --git a/cpp/QrCode.cpp b/cpp/QrCode.cpp index 514435b..9c4db53 100644 --- a/cpp/QrCode.cpp +++ b/cpp/QrCode.cpp @@ -536,8 +536,8 @@ bool QrCode::getBit(long x, int i) { /*---- Tables of constants ----*/ -const int QrCode::PENALTY_N1 = 3; -const int QrCode::PENALTY_N2 = 3; +const int QrCode::PENALTY_N1 = 3; +const int QrCode::PENALTY_N2 = 3; const int QrCode::PENALTY_N3 = 40; const int QrCode::PENALTY_N4 = 10; diff --git a/java/io/nayuki/qrcodegen/QrCode.java b/java/io/nayuki/qrcodegen/QrCode.java index 36e7939..db4d83e 100644 --- a/java/io/nayuki/qrcodegen/QrCode.java +++ b/java/io/nayuki/qrcodegen/QrCode.java @@ -707,8 +707,8 @@ public final class QrCode { /*---- Private tables of constants ----*/ // For use in getPenaltyScore(), when evaluating which mask is best. - private static final int PENALTY_N1 = 3; - private static final int PENALTY_N2 = 3; + private static final int PENALTY_N1 = 3; + private static final int PENALTY_N2 = 3; private static final int PENALTY_N3 = 40; private static final int PENALTY_N4 = 10; diff --git a/javascript/qrcodegen.js b/javascript/qrcodegen.js index 0af8399..1492733 100644 --- a/javascript/qrcodegen.js +++ b/javascript/qrcodegen.js @@ -641,8 +641,8 @@ var qrcodegen = new function() { /*---- Private tables of constants for QrCode ----*/ // For use in getPenaltyScore(), when evaluating which mask is best. - QrCode.PENALTY_N1 = 3; - QrCode.PENALTY_N2 = 3; + QrCode.PENALTY_N1 = 3; + QrCode.PENALTY_N2 = 3; QrCode.PENALTY_N3 = 40; QrCode.PENALTY_N4 = 10; diff --git a/python/qrcodegen.py b/python/qrcodegen.py index 512be56..e1326b8 100644 --- a/python/qrcodegen.py +++ b/python/qrcodegen.py @@ -530,8 +530,8 @@ class QrCode(object): # ---- Private tables of constants ---- # For use in getPenaltyScore(), when evaluating which mask is best. - _PENALTY_N1 = 3 - _PENALTY_N2 = 3 + _PENALTY_N1 = 3 + _PENALTY_N2 = 3 _PENALTY_N3 = 40 _PENALTY_N4 = 10 diff --git a/rust/src/lib.rs b/rust/src/lib.rs index f80c22a..a37a533 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -681,8 +681,8 @@ pub const QrCode_MAX_VERSION: Version = Version(40); /*---- Private tables of constants ----*/ // For use in get_penalty_score(), when evaluating which mask is best. -const PENALTY_N1: i32 = 3; -const PENALTY_N2: i32 = 3; +const PENALTY_N1: i32 = 3; +const PENALTY_N2: i32 = 3; const PENALTY_N3: i32 = 40; const PENALTY_N4: i32 = 10; diff --git a/typescript/qrcodegen.ts b/typescript/qrcodegen.ts index d197129..fa4f9eb 100644 --- a/typescript/qrcodegen.ts +++ b/typescript/qrcodegen.ts @@ -611,8 +611,8 @@ namespace qrcodegen { // For use in getPenaltyScore(), when evaluating which mask is best. - private static readonly PENALTY_N1: int = 3; - private static readonly PENALTY_N2: int = 3; + private static readonly PENALTY_N1: int = 3; + private static readonly PENALTY_N2: int = 3; private static readonly PENALTY_N3: int = 40; private static readonly PENALTY_N4: int = 10;