aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/control_flow.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-15 18:05:50 -0400
committerLioncash <mathew1800@gmail.com>2019-10-15 19:10:28 -0400
commit271d07c2e7629f6d22fb5eaae4e208cafb47d355 (patch)
tree48432e50531e55601bb82b48216f3d1dc6f1fb6b /src/video_core/shader/control_flow.cpp
parent0b0ac56219f7a84c28b5a1db0ef9a25928935d47 (diff)
control_flow: Silence truncation warnings
This can be trivially fixed by making the input size a size_t. CFGRebuildState's constructor parameter is already a std::size_t, so this just makes the size type fully conform with it.
Diffstat (limited to 'src/video_core/shader/control_flow.cpp')
-rw-r--r--src/video_core/shader/control_flow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp
index 268d1aed00..9d21f45ded 100644
--- a/src/video_core/shader/control_flow.cpp
+++ b/src/video_core/shader/control_flow.cpp
@@ -473,8 +473,8 @@ void DecompileShader(CFGRebuildState& state) {
state.manager->Decompile();
}
-std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size,
- u32 start_address,
+std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code,
+ std::size_t program_size, u32 start_address,
const CompilerSettings& settings) {
auto result_out = std::make_unique<ShaderCharacteristics>();
if (settings.depth == CompileDepth::BruteForce) {