You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading the "Numeric conversion functions" of the lib, it's not clear to me whether the functions there will raise if one tries to convert, e.g., an int32 into an int24, or if it will truncate/mask the value.
It could make sense to improve the doc to make this really clear.
The text was updated successfully, but these errors were encountered:
This should be pretty easy to implement: Just check if the forward+backward conversion is idemnpotent:
let f x = let y = of_int32 x in if Int32.of_int8 y = x then y else raise Overflow
Reading the "Numeric conversion functions" of the lib, it's not clear to me whether the functions there will raise if one tries to convert, e.g., an int32 into an int24, or if it will truncate/mask the value.
It could make sense to improve the doc to make this really clear.
The text was updated successfully, but these errors were encountered: