Skip to content

Remove sizeof(char) uses #60717

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
Jan 13, 2025
Merged

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Jan 13, 2025

A long time ago before we ever even committed to C99 as a standard, these might have served some purpose. However, in at least C99 it is guaranteed that sizeof(char) == 1, so now these are just visual clutter

@WillAyd WillAyd requested a review from MarcoGorelli as a code owner January 13, 2025 20:18
@mroeschke mroeschke added the Internals Related to non-user accessible pandas implementation label Jan 13, 2025
@mroeschke mroeschke added this to the 3.0 milestone Jan 13, 2025
@mroeschke mroeschke merged commit 221ad46 into pandas-dev:main Jan 13, 2025
55 checks passed
@mroeschke
Copy link
Member

Thanks @WillAyd

@WillAyd WillAyd deleted the remove-sizeof-char branch January 13, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants