Skip to content

Commit 20d9509

Browse files
committed
Fix tests on 32bit architectures
1 parent 17f9032 commit 20d9509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_test/test_wire.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ let test_encoder ctxt =
9292
let test_overflow ctxt =
9393
if Sys.word_size = 32 then
9494
assert_raises Decoder.(Failure (Overflow ""))
95-
(fun () -> Decoder.int_of_int32 "" 0xffffffffl)
95+
(fun () -> Decoder.int_of_int32 "" 0x7fffffffl)
9696
else
9797
assert_equal (-1) (Decoder.int_of_int32 "" 0xffffffffl);
9898
assert_raises Decoder.(Failure (Overflow ""))

0 commit comments

Comments
 (0)