Skip to content

Commit

Permalink
pkg: remove magic number
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: a9d39007-ba86-4ce3-8ab6-618146a0f4e5 -->

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jan 18, 2025
1 parent 82825b8 commit d019148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/opam/src/format/opamPackage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module Version = struct
in
match major_opt, minor_opt, patch_opt with
| Some major, Some minor, Some patch ->
let max = 65535 in
let max = 2 lsl 15 - 1 in
if major <= max && minor <= max && patch <= max
then
(* If each part of the version number can fit in a 16-bit
Expand Down

0 comments on commit d019148

Please sign in to comment.