diff options
| author | Matthew Parlane <parlane@gmail.com> | 2017-03-28 15:37:18 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-28 15:37:18 +1300 |
| commit | 3000cc7c0554a745d30b90f1777fad6afdc6c409 (patch) | |
| tree | 09211877302cf76e117cf7d4d55455656aab935c /Source/Core/VideoCommon/XFStructs.cpp | |
| parent | 3eff8699377048b9c4303f350c825c882d74adec (diff) | |
| parent | d44844ba29e9b2d2169c5acd82cb7001680b3c1e (diff) | |
Merge pull request #5175 from lioncash/fifo
Fifo: const correctness
Diffstat (limited to 'Source/Core/VideoCommon/XFStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/XFStructs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/XFStructs.cpp b/Source/Core/VideoCommon/XFStructs.cpp index 9a2db74459..dbe3f21e02 100644 --- a/Source/Core/VideoCommon/XFStructs.cpp +++ b/Source/Core/VideoCommon/XFStructs.cpp @@ -288,12 +288,12 @@ void LoadIndexedXF(u32 val, int refarray) void PreprocessIndexedXF(u32 val, int refarray) { - int index = val >> 16; - int size = ((val >> 12) & 0xF) + 1; + const u32 index = val >> 16; + const u32 size = ((val >> 12) & 0xF) + 1; - u32* new_data = (u32*)Memory::GetPointer(g_preprocess_cp_state.array_bases[refarray] + - g_preprocess_cp_state.array_strides[refarray] * index); + const u8* new_data = Memory::GetPointer(g_preprocess_cp_state.array_bases[refarray] + + g_preprocess_cp_state.array_strides[refarray] * index); - size_t buf_size = size * sizeof(u32); + const size_t buf_size = size * sizeof(u32); Fifo::PushFifoAuxBuffer(new_data, buf_size); } |
