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: Remove unnecessary assert and includes #259

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

JFreegman
Copy link
Member

@JFreegman JFreegman commented Dec 31, 2023

This assert can give odd compile errors and is unnecessary. We can easily prove that sizeof(ret->name) is <= sizeof(buf) as sizeof(buf) includes sizeof(ret->name)


This change is Reviewable

This assert can give odd compile errors and is unnecessary.
We can easily prove that sizeof(ret->name) is <= sizeof(buf)
as sizeof(buf) includes sizeof(ret->name)
@JFreegman JFreegman added the cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature. label Dec 31, 2023
@JFreegman JFreegman added this to the 0.13.1 milestone Dec 31, 2023
@toktok-releaser toktok-releaser merged commit 3add8b8 into TokTok:master Dec 31, 2023
11 checks passed
@JFreegman JFreegman deleted the remove_assert branch December 31, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.
Development

Successfully merging this pull request may close these issues.

3 participants