From 0b89eef36147a3072c0ffedfa95da3a2b7e1b609 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Fri, 31 Aug 2018 16:06:08 +0000 Subject: [PATCH] Fixed incorrect default argument in TypeScript QrCode.encodeSegments(). --- typescript/qrcodegen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/qrcodegen.ts b/typescript/qrcodegen.ts index 1c626c7..1bedfff 100644 --- a/typescript/qrcodegen.ts +++ b/typescript/qrcodegen.ts @@ -73,7 +73,7 @@ namespace qrcodegen { // between modes (such as alphanumeric and binary) to encode text more efficiently. // This function is considered to be lower level than simply encoding text or binary data. public static encodeSegments(segs: Array, ecl: QrCode.Ecc, - minVersion: int = 1, maxVersion: int = 1, + minVersion: int = 1, maxVersion: int = 40, mask: int = -1, boostEcl: boolean = true): QrCode { if (!(QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= QrCode.MAX_VERSION)