mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00: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
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue