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

fix: char can be signed or unsigned depending on platform, make it explicit #1190

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

csett86
Copy link
Member

@csett86 csett86 commented Sep 3, 2024

chars can be signed or unsigned by default, as we expect signed here, make it
explicit.

Fixes error on arm64:

./../vtools/dialogs/tools/dialogtool.h:100:45: error: enumerator value ‘-7’ is outside the range of underlying type ‘char’
100 | enum class DialogPosition : char {Offset = -7, BottomRight, BottomLeft, Center, TopRight, TopLeft};
|

…plicit

chars can be signed or unsigned by default, as we expect signed here, make it
explicit.

Fixes error on arm64:

./../vtools/dialogs/tools/dialogtool.h:100:45: error: enumerator value ‘-7’ is outside the range of underlying type ‘char’
  100 | enum class DialogPosition : char {Offset = -7, BottomRight, BottomLeft, Center, TopRight, TopLeft};
      |
Copy link
Contributor

@Onetchou Onetchou left a comment

Choose a reason for hiding this comment

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

Looks good 😊

@csett86 csett86 merged commit 67717b4 into develop Sep 3, 2024
10 checks passed
@csett86 csett86 deleted the fixup-DialogPosition-arm64 branch September 3, 2024 19:19
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