We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int24_of_* on 64 bits arch because the shift is then wrong, and uint24_of_* because the extranuous shift.
The text was updated successfully, but these errors were encountered:
Fix conversion from any ints to uint24 and int24
142ce47
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 andrenth#40
1babbe9
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 andrenth#40 (cherry picked from commit 142ce47)
Successfully merging a pull request may close this issue.
int24_of_* on 64 bits arch because the shift is then wrong, and uint24_of_* because the extranuous shift.
The text was updated successfully, but these errors were encountered: