Use unsigned shift in uleb128()

This commit is contained in:
2026-03-15 14:15:40 +00:00
parent b85a4e8bc9
commit 5e39024f6d

2
asm.js
View File

@@ -1169,7 +1169,7 @@ export class Assembler {
const bytes = []; const bytes = [];
while (true) { while (true) {
const b = x & 0x7f; const b = x & 0x7f;
x >>= 7; x >>>= 7;
if (x == 0) { if (x == 0) {
bytes.push(b); bytes.push(b);
return bytes; return bytes;