Skip to content

Commit a98d687

Browse files
committed
Fix bug in Int31.shift_right_logical
1 parent c60c9b0 commit a98d687

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/lib/stdlib.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ end = struct
447447

448448
let shift_right = shift_op Int32.shift_right
449449

450-
let shift_right_logical a b =
451-
shift_op Int32.shift_right_logical (Int32.logand a 0x7fffffffl) b
450+
let shift_right_logical a b = shift_op Int32.shift_right_logical a b
452451

453452
let to_int32 (x : t) : int32 = x
454453
end

0 commit comments

Comments
 (0)