XFStructs: Get rid of an unnecessary pointer cast

Also gets rid of implicit sign conversions.
This commit is contained in:
Lioncash 2017-03-26 23:09:28 -04:00
parent 62db55dee2
commit d44844ba29
1 changed files with 4 additions and 5 deletions

View File

@ -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);