mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
XFStructs: Get rid of an unnecessary pointer cast
Also gets rid of implicit sign conversions.
This commit is contained in:
parent
62db55dee2
commit
d44844ba29
@ -288,12 +288,11 @@ void LoadIndexedXF(u32 val, int refarray)
|
||||
|
||||
void PreprocessIndexedXF(u32 val, int refarray)
|
||||
{
|
||||
const int index = val >> 16;
|
||||
const int size = ((val >> 12) & 0xF) + 1;
|
||||
const u32 index = val >> 16;
|
||||
const u32 size = ((val >> 12) & 0xF) + 1;
|
||||
|
||||
const 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);
|
||||
|
||||
const size_t buf_size = size * sizeof(u32);
|
||||
Fifo::PushFifoAuxBuffer(new_data, buf_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user