From 64729aec7bc5d6f8f08bd24fc31d7c4f7b6b6222 Mon Sep 17 00:00:00 2001 From: "Akihiko.KIgure" Date: Tue, 11 Jan 2022 18:07:07 +0900 Subject: [PATCH] =?UTF-8?q?parseUint16=20=E3=81=AE=E5=BC=95=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index a6cf6bb..d70cedb 100644 --- a/index.ts +++ b/index.ts @@ -13,8 +13,8 @@ const GPIOPortMapSizeMax = 1024; const Uint16Max = 65535; -function parseUint16(string: string) { - const n = Number.parseInt(string, 10); +function parseUint16(parseString: string) { + const n = Number.parseInt(parseString, 10); if (0 <= n && n <= Uint16Max) return n; else throw new RangeError(`Must be between 0 and ${Uint16Max}.`); }