Skip to content

Conversation

bjornblissing
Copy link
Contributor

Fixed warning regarding comparing a signed variable bit with unsigned nbits.

The value nbits is checked to be less then or equal to 32 in the rows above, which prevents overflow when casting to a signed type.

Fixed warning regarding comparing a signed variable `bit` with unsigned `nbits`.

The value `nbits` is checked to be less then or equal to 32 in the rows above, which prevents overflow when casting to a signed type.
@tomfinegan tomfinegan changed the title Fix signed/unsigned mismatch Fix signed/unsigned mismatch in decoder_buffer.h Dec 1, 2022
@tomfinegan tomfinegan merged commit 7ec8a27 into google:master Dec 1, 2022
danielgronlund pushed a commit to danielgronlund/draco that referenced this pull request Aug 22, 2024
Fixed warning regarding comparing a signed variable `bit` with unsigned `nbits`.

The value `nbits` is checked to be less then or equal to 32 in the rows above, which prevents
overflow when casting to a signed type.
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