summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-16 17:22:40 +0200
committerLioncash <mathew1800@gmail.com>2019-07-19 03:03:29 +0200
commit1109db86b7259857762fc29b2ff8c9f95e92353e (patch)
tree0837fe4190c15d7891ecd51bc7862f1fa0774353 /src
parentMerge pull request #2687 from lioncash/tls-process (diff)
downloadyuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar.gz
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar.bz2
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar.lz
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar.xz
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.tar.zst
yuzu-1109db86b7259857762fc29b2ff8c9f95e92353e.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode.cpp4
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);