From af10576b889b8a9c3d36dd7344562ddfc600ca92 Mon Sep 17 00:00:00 2001 From: MengYX Date: Sat, 25 Dec 2021 20:20:15 +0800 Subject: [PATCH] fix: declare radix in parseInt Co-authored-by: Jixun Wu <5713045+jixunmoe@users.noreply.github.com> (cherry picked from commit eee7d7aedc37797820184c12f6954df23e4b98b8) --- src/decrypt/qmc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decrypt/qmc.ts b/src/decrypt/qmc.ts index a04c901..973bfdd 100644 --- a/src/decrypt/qmc.ts +++ b/src/decrypt/qmc.ts @@ -145,7 +145,7 @@ export class QmcDecoder { if (keyEnd < 0) { throw new Error('invalid key: search song id failed'); } - this._songID = parseInt(textEnc.decode(idBuf.subarray(0, idEnd))); + this._songID = parseInt(textEnc.decode(idBuf.subarray(0, idEnd)), 10); } else { const sizeView = new DataView(last4Byte.buffer, last4Byte.byteOffset); const keySize = sizeView.getUint32(0, true);