awslabs / aws-c-event-stream

C99 implementation of the vnd.amazon.eventstream content-type.
Apache License 2.0
33 stars 47 forks source link

Fix -Wuseless-cast compiler warning for public headers #115

Closed graebm closed 1 month ago

graebm commented 1 month ago

Issue #: https://github.com/awslabs/aws-c-common/issues/973

Research: 6 years ago, PR https://github.com/awslabs/aws-c-event-stream/pull/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.

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