Skip to content

Use correct type for receivers that best matches its data #4720

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Mar 19, 2023

For example, when not passing the data to other CF functions, the length of a C string can be size_t as opposed to CFIndex.

Additionally, where appropriate, I replaced a for loop with memcpy to safely copy data between two variables of different data types.

@AZero13 AZero13 changed the title Use correct type for receivers that best matches its data. Use correct type for receivers that best matches its data Mar 20, 2023
For example, when not passing the data to other CF functions, the length of a C string can be size_t as opposed to CFIndex.

Additionally, where appropriate, I replaced a for loop with memcpy to safely copy data between two variables of different data types.
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.

1 participant