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/command_processor.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/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index f2e3aee85..51ab70159 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -103,7 +103,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[0], 0x23c): case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[1], 0x23d): { - unsigned index = id - PICA_REG_INDEX(command_buffer.trigger[0]); + unsigned index = static_cast<int>(id - PICA_REG_INDEX(command_buffer.trigger[0])); u32* head_ptr = (u32*)Memory::GetPhysicalPointer(regs.command_buffer.GetPhysicalAddress(index)); g_state.cmd_list.head_ptr = g_state.cmd_list.current_ptr = head_ptr; g_state.cmd_list.length = regs.command_buffer.GetSize(index) / sizeof(u32); |