Kaynağa Gözat

shader/control_flow: Silence Intellisense cast warnings

ReinUsesLisp 6 yıl önce
ebeveyn
işleme
ae7dfa93be
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/video_core/shader/control_flow.cpp

+ 1 - 1
src/video_core/shader/control_flow.cpp

@@ -109,7 +109,7 @@ BlockInfo& CreateBlockInfo(CFGRebuildState& state, u32 start, u32 end) {
 }
 
 Pred GetPredicate(u32 index, bool negated) {
-    return static_cast<Pred>(index + (negated ? 8 : 0));
+    return static_cast<Pred>(static_cast<u64>(index) + (negated ? 8ULL : 0ULL));
 }
 
 /**