Skip to content

Fix conversion from size_t to uint32_t. #5

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
Oct 23, 2018

Conversation

wps132230
Copy link
Contributor

Description of changes:
Recent Wconversion will break the code because of failure to convert from size_t to uint32_t.

return aws_event_stream_message_total_length(message) -

This PR will define constants as uint32_t to fix that.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JonathanHenson JonathanHenson merged commit 0e8d2a1 into awslabs:master Oct 23, 2018
graebm added a commit that referenced this pull request Aug 16, 2024
**Issue #:**
awslabs/aws-c-common#973

**Research:**
6 years ago, PR #5 made these constants `uint32_t` via a cast.

**Description of changes:**
Avoid `-Wuseless-cast` warnings, don't cast `size_t` to `uint32_t` on 32-bit platforms.
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.

2 participants