Skip to content

avoid overflow in dispatch_io test #85

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

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

dgrove-oss
Copy link
Contributor

Test was failing because number of bytes read overflows int32_t.
Changing to a uint32_t is sufficient to avoid overflow.

Changing to int64_t would also work, but is a larger change (since
we then need to provide an OSAtomicAdd64 function on Linux).

Test was failing because number of bytes read overflows int32_t.
Changing to a uint32_t is sufficient to avoid overflow.

Changing to int64_t would also work, but is a larger change (since
we then need to provide an OSAtomicAdd64 function on Linux).
@MadCoder
Copy link
Contributor

you can also use stdatomic ;)
but that will do

@MadCoder MadCoder merged commit 5ad4d2b into swiftlang:master Jun 16, 2016
@dgrove-oss dgrove-oss deleted the fix_dispatch_io branch June 16, 2016 21:24
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