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

externalterm: fix a warning related to integer promotion #965

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Nov 29, 2023

size_t < uint8_t + constant causes a warning due to promotion of uint8_t + constant to int.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

`size_t < uint8_t + constant` causes a warning due to promotion of
`uint8_t + constant` to int.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio changed the title externalterm: fix warning related to integer promotion externalterm: fix a warning related to integer promotion Nov 29, 2023
Copy link
Collaborator

@UncleGrumpy UncleGrumpy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Less warnings is always nice.

@bettio bettio merged commit 047ccc7 into atomvm:master Nov 29, 2023
81 of 84 checks passed
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.

3 participants