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

Allow init_stream() to take unsigned size arguments #2832

Closed

Conversation

matt335672
Copy link
Member

Support using an unsigned argument for the size argument to init_stream(). This argument should not need a cast if passed an unsigned int (e.g.) from the sizeof operator.

The correct fix is probably to move the stream struct to using unsigned int or size_t rather than int. This is somewhat less intrusive for now.

Support using an unsigned argument for the size argument to
init_stream(). This argument should not need a cast if passed an unsigned
int (e.g.) from the sizeof operator
@matt335672
Copy link
Member Author

On second thoughts, this is a bad idea because of possible overflows - closing.

@matt335672 matt335672 closed this Oct 23, 2023
@matt335672 matt335672 deleted the init_stream_unsigned branch October 23, 2023 13:10
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