Skip to content

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