fix: declare radix in parseInt

Co-authored-by: Jixun Wu <[email protected]>
(cherry picked from commit eee7d7aedc37797820184c12f6954df23e4b98b8)
This commit is contained in:
MengYX
2022-01-09 10:46:48 +08:00
committed by MengYX
parent a2210becc5
commit 152b695b10
+1 -1
View File
@@ -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);