-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion from any ints to uint24 and int24
int24 was wrong on 64bits arch only, whereas uint24 was wrong for all archs. Before: # Uint24.(of_uint32 (Uint32.of_int 42) |> to_int);; - : int = 10752 # Int24.(of_int32 (Int32.of_int 42) |> to_int);; - : int = 10752 After: # Uint24.(of_uint32 (Uint32.of_int 42) |> to_int);; - : int = 42 # Uint24.(of_uint32 (Uint32.of_int 42) |> to_int);; - : int = 42 Closes #40 (cherry picked from commit 142ce47)
- Loading branch information
Showing
2 changed files
with
46 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters