diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-25 19:04:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 19:04:56 +0200 |
commit | b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee (patch) | |
tree | 66d350fdcc096ca621932f76349669cbe0e63a72 /src/video_core/shader/decode.cpp | |
parent | Merge pull request #2737 from FernandoS27/track-fix (diff) | |
parent | video_core/control_flow: Provide operator!= for types with operator== (diff) | |
download | yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.gz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.bz2 yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.lz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.xz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.zst yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.zip |
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 afffd157f..b547d8323 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); |