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
The documentation for ByteOrder::write_int says:
ByteOrder::write_int
If n is not representable in nbytes, or if nbytes is > 8, then this method panics.
However, passing inputs that fail the first condition doesn't actually cause a panic:
BigEndian::write_int(&mut [0; 8], 99999999, 1); // Doesn't panic BigEndian::write_int(&mut [0; 8], -99999999, 1); // Also doesn't panic
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The documentation for
ByteOrder::write_int
says:However, passing inputs that fail the first condition doesn't actually cause a panic:
The text was updated successfully, but these errors were encountered: