Skip to content

Resolve some default error warnings (#7191)#7196

Merged
bob80905 merged 2 commits intomicrosoft:release-1.8.2502from
bob80905:cp_fix_bool_int_comparisons
Mar 12, 2025
Merged

Resolve some default error warnings (#7191)#7196
bob80905 merged 2 commits intomicrosoft:release-1.8.2502from
bob80905:cp_fix_bool_int_comparisons

Conversation

@bob80905
Copy link
Copy Markdown
Collaborator

@bob80905 bob80905 commented Mar 12, 2025

DxilContainerValidation.cpp has some int / bool comparisons that cause default error warnings in some of the private builds. This needs to be addressed. This PR changes the comparisons by converting the numerical expressions into the appropriate boolean, then comparing the booleans.

DxilContainerValidation.cpp has some int / bool comparisons that cause
default error warnings in some of the private builds.
This needs to be addressed. This PR changes the comparisons by
converting the numerical expressions into the appropriate boolean, then
comparing the booleans.
Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

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

LGTM!

@bob80905 bob80905 merged commit f2f02c5 into microsoft:release-1.8.2502 Mar 12, 2025
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Mar 12, 2025
madebr pushed a commit to libsdl-org/DirectXShaderCompiler that referenced this pull request Dec 3, 2025
DxilContainerValidation.cpp has some int / bool comparisons that cause
default error warnings in some of the private builds. This needs to be
addressed. This PR changes the comparisons by converting the numerical
expressions into the appropriate boolean, then comparing the booleans.

(cherry picked from commit f2f02c5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants