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
Given the quoted documentation and the fact that other Int modules seem to raise an exception (although not Failure but Invalid_arg, which looks better to me), I'd say that Uint128.of_string should indeed raise.
I would favor if all of the of_string functions would raise the same exception BTW.
Actual behavior
Here is a toplevel session:
Basically, this is the maximum 128-bit unsigned integer. It behaves the same for the rest of bit widths.
Expected behavior
Raises an exception according to the description here:
ocaml-stdint/lib/stdint.mli
Lines 292 to 297 in 48f97cd
The text was updated successfully, but these errors were encountered: