Skip to content

Commit 3f541ec

Browse files
committed
shrU instead
1 parent 48f9511 commit 3f541ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/compile.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4512,8 +4512,8 @@ module Serialization = struct
45124512
end ^^
45134513
(* Check 32-bit overflow of buffer_size *)
45144514
get_data_size ^^
4515-
compile_const_64 0x1_0000_0000L ^^
4516-
G.i (Compare (Wasm.Values.I64 I64Op.LtU)) ^^
4515+
compile_shrU64_const 32L ^^
4516+
G.i (Test (Wasm.Values.I64 I64Op.Eqz)) ^^
45174517
E.else_trap_with env "buffer_size overflow" ^^
45184518
(* Convert to 32-bit *)
45194519
get_data_size ^^

0 commit comments

Comments
 (0)