diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-16 11:22:40 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-07-18 21:03:29 -0400 |
commit | 1109db86b7259857762fc29b2ff8c9f95e92353e (patch) | |
tree | 0837fe4190c15d7891ecd51bc7862f1fa0774353 /src/video_core/shader/decode.cpp | |
parent | 5d369112d9d467d4257e24ce57f3ebba824556f0 (diff) |
video_core/shader/decode: Prevent sign-conversion warnings
Makes it explicit that the conversions here are intentional.
Diffstat (limited to 'src/video_core/shader/decode.cpp')
-rw-r--r-- | src/video_core/shader/decode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp index afffd157fa..b547d83230 100644 --- a/src/video_core/shader/decode.cpp +++ b/src/video_core/shader/decode.cpp @@ -47,14 +47,14 @@ void ShaderIR::Decode() { if (shader_info.decompilable) { disable_flow_stack = true; const auto insert_block = [this](NodeBlock& nodes, u32 label) { - if (label == exit_branch) { + if (label == static_cast<u32>(exit_branch)) { return; } basic_blocks.insert({label, nodes}); }; const auto& blocks = shader_info.blocks; NodeBlock current_block; - u32 current_label = exit_branch; + u32 current_label = static_cast<u32>(exit_branch); for (auto& block : blocks) { if (shader_info.labels.count(block.start) != 0) { insert_block(current_block, current_label); |