diff options
author | zawata <zawataza@gmail.com> | 2015-06-28 04:32:56 +0200 |
---|---|---|
committer | zawata <zawataza@gmail.com> | 2015-07-19 12:59:49 +0200 |
commit | 716120da3d2f631edbb60638c2dd4b5400139c37 (patch) | |
tree | e9b6779198e5bad1434480d858583120f97fd2b3 /src/video_core/vertex_shader.cpp | |
parent | Core : Fix Conversion Warnings (diff) | |
download | yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar.gz yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar.bz2 yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar.lz yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar.xz yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.tar.zst yuzu-716120da3d2f631edbb60638c2dd4b5400139c37.zip |
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r-- | src/video_core/vertex_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 87006a832..f074a3128 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -96,7 +96,7 @@ static void ProcessShaderCode(VertexShaderState& state) { state.program_counter = &program_code[offset] - 1; // -1 to make sure when incrementing the PC we end up at the correct offset state.call_stack.push({ offset + num_instructions, return_offset, repeat_count, loop_increment, offset }); }; - u32 binary_offset = state.program_counter - program_code.data(); + u32 binary_offset = static_cast<u32>(state.program_counter - program_code.data()); state.debug.max_offset = std::max<u32>(state.debug.max_offset, 1 + binary_offset); |