From 401e8e1fad254bc9a95bdf59d62c3728de4ba13b Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sun, 15 Mar 2026 14:07:26 +0000 Subject: [PATCH] Use unsigned right shift in Assembler.le() --- asm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asm.js b/asm.js index 031ec44..6c5d0f8 100644 --- a/asm.js +++ b/asm.js @@ -1136,10 +1136,10 @@ export class Assembler { } le(value, count) { - let bytes = [] + const bytes = [] while (value != 0) { bytes.push(value & 0xff); - value >>= 8; + value >>>= 8; } if (count != undefined) { while (bytes.length < count)