microsoft / D3D12TranslationLayer

A library containing utilities for mapping higher-level graphics work to D3D12
MIT License
329 stars 47 forks source link

[TSA bugs] Fix narrow/wide type comparison in loop condition #98

Closed vdwtanner closed 5 months ago

vdwtanner commented 5 months ago

Generally tried to just change counting variables to size_t to match the comparison. In cases where the counting variable was assigned in to other narrower types I just did an assert on the size of the comparison value and then static_cast it to match.

Realistically shouldn't hit these situations anyway.