Skip to content

Conversation

st0rmbtw
Copy link
Contributor

@st0rmbtw st0rmbtw commented Aug 24, 2025

This PR fixes a clang error:

Non-constant-expression cannot be narrowed from type 'int32_t' (aka 'int') to 'std::uint32_t' (aka 'unsigned int') in initializer list

@@ -98,7 +98,7 @@ static void XDGTopLevelHandleConfigureCallback(
LinuxWindowWayland::State& state = window->GetState();

if (width != 0 && height != 0 && (width != state.size.width || height != state.size.height))
Copy link
Owner

Choose a reason for hiding this comment

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

You're still comparing signed with unsigned integers here. Maybe it's more elegant to construct the new Extent2D size before the if-statement and then just compare newSize != state.size.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're right :)

@LukasBanana LukasBanana added improvement General improvements and logical fixes. Linux labels Aug 26, 2025
@LukasBanana LukasBanana merged commit d986b0c into LukasBanana:master Aug 26, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvements and logical fixes. Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants