Skip to content

Commit

Permalink
tests: let the large integer literal overflow on 32-bit platforms
Browse files Browse the repository at this point in the history
the alternative is it not compiling at all...
  • Loading branch information
avsm committed Jul 13, 2017
1 parent 967fd58 commit a8954c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_test/tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ let check_alignment_zero () =
Invalid_argument _ -> ()

let check_alignment_large () =
assert_equal (Cstruct.(check_alignment (create 1) 4294967296)) false
assert_equal (Cstruct.(check_alignment (create 1) (Int64.to_int 4294967296L))) false

let _ =
let suite =
Expand Down

0 comments on commit a8954c1

Please sign in to comment.