mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
XFStructs: Get rid of an unnecessary pointer cast
Also gets rid of implicit sign conversions.
This commit is contained in:
@ -288,12 +288,11 @@ void LoadIndexedXF(u32 val, int refarray)
|
|||||||
|
|
||||||
void PreprocessIndexedXF(u32 val, int refarray)
|
void PreprocessIndexedXF(u32 val, int refarray)
|
||||||
{
|
{
|
||||||
const int index = val >> 16;
|
const u32 index = val >> 16;
|
||||||
const int size = ((val >> 12) & 0xF) + 1;
|
const u32 size = ((val >> 12) & 0xF) + 1;
|
||||||
|
|
||||||
const u32* new_data =
|
const u8* new_data = Memory::GetPointer(g_preprocess_cp_state.array_bases[refarray] +
|
||||||
(u32*)Memory::GetPointer(g_preprocess_cp_state.array_bases[refarray] +
|
g_preprocess_cp_state.array_strides[refarray] * index);
|
||||||
g_preprocess_cp_state.array_strides[refarray] * index);
|
|
||||||
|
|
||||||
const size_t buf_size = size * sizeof(u32);
|
const size_t buf_size = size * sizeof(u32);
|
||||||
Fifo::PushFifoAuxBuffer(new_data, buf_size);
|
Fifo::PushFifoAuxBuffer(new_data, buf_size);
|
||||||
|
Reference in New Issue
Block a user