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

[wgpu backend] Avoid using the -1u literal #7436

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

eliemichel
Copy link
Contributor

Problem: The literal -1u raises the warning C4146: unary minus operator applied to unsigned type, result still unsigned on MSVC.

Solution: We instead use UINT32_MAX, like webgpu.h does to set all its "undefined" constants.

The literal `-1u` raises the warning `C4146: unary minus operator applied to unsigned type, result still unsigned` on MSVC. We instead use `UINT32_MAX`, like `webgpu.h` does to set all its "undefined" constants.
@ocornut ocornut merged commit 8be48a4 into ocornut:master Mar 25, 2024
6 checks passed
@ocornut
Copy link
Owner

ocornut commented Mar 25, 2024

Thank you Elie !

pull bot pushed a commit to TeamREPENTOGON/imgui that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants