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

CircularBuffer.Index: remove bogus assert #978

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

weissi
Copy link
Member

@weissi weissi commented Apr 23, 2019

Motivation:

CircularBuffer.Index was asserting that its size is the same as a word.
Whilst that's true on 64-bit architectures, the assert itself is bogus
and a left-over from development.

Modifications:

Remove bogus assert.

Result:

Motivation:

CircularBuffer.Index was asserting that its size is the same as a word.
Whilst that's true on 64-bit architectures, the assert itself is bogus
and a left-over from development.

Modifications:

Remove bogus assert.

Result:

Better 32-bit support.
@weissi weissi requested a review from normanmaurer April 23, 2019 15:13
@weissi weissi added the 🔨 semver/patch No public API change. label Apr 23, 2019
@weissi weissi added this to the 2.1.0 milestone Apr 23, 2019
@weissi weissi merged commit 2cfa777 into apple:master Apr 23, 2019
@weissi weissi deleted the jw-bogus-assert branch April 23, 2019 17:41
@weissi weissi modified the milestones: 2.1.0, 2.0.2 Apr 30, 2019
weissi added a commit to weissi/swift-nio that referenced this pull request Apr 30, 2019
Motivation:

CircularBuffer.Index was asserting that its size is the same as a word.
Whilst that's true on 64-bit architectures, the assert itself is bogus
and a left-over from development.

Modifications:

Remove bogus assert.

Result:

Better 32-bit support.

(cherry picked from commit 2cfa777)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assert hit on 32 bit machines
2 participants