Skip to content
Snippets Groups Projects
Unverified Commit af10576b authored by MengYX's avatar MengYX Committed by MengYX
Browse files

fix: declare radix in parseInt


Co-authored-by: default avatarJixun Wu <5713045+jixunmoe@users.noreply.github.com>
(cherry picked from commit eee7d7aedc37797820184c12f6954df23e4b98b8)
parent fc4a0e00
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ export class QmcDecoder { ...@@ -145,7 +145,7 @@ export class QmcDecoder {
if (keyEnd < 0) { if (keyEnd < 0) {
throw new Error('invalid key: search song id failed'); 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 { } else {
const sizeView = new DataView(last4Byte.buffer, last4Byte.byteOffset); const sizeView = new DataView(last4Byte.buffer, last4Byte.byteOffset);
const keySize = sizeView.getUint32(0, true); const keySize = sizeView.getUint32(0, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment