Skip to content
New issue

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

cleanup: Avoid implicit int-to-bool conversions. #76

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

iphydf
Copy link
Contributor

@iphydf iphydf commented Apr 5, 2024

IMPORTANT: This is a semantic change. Previously, it would count as a success if writing 64 bits results in actually writing only 1 byte, 2 bytes, or writing 10 bytes instead of the expected 8. Now, only writing exactly 8 bytes as requested counts as success.

iphydf and others added 2 commits April 5, 2024 14:05
IMPORTANT: This is a semantic change. Previously, it would count as a
success if writing 64 bits results in actually writing only 1 byte, 2
bytes, or writing 10 bytes instead of the expected 8. Now, only writing
exactly 8 bytes as requested counts as success.
@camgunz
Copy link
Owner

camgunz commented Apr 14, 2024

Thanks for the info there; yeah it's a change but I think it's fine. Any writer returning the wrong number of bytes written should probably be known about anyway.

@camgunz camgunz merged commit ead7d11 into camgunz:master Apr 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants