diff --git a/rpcs3/Emu/RSX/rsx_cache.h b/rpcs3/Emu/RSX/rsx_cache.h index ebcd3951bc..267abb4210 100644 --- a/rpcs3/Emu/RSX/rsx_cache.h +++ b/rpcs3/Emu/RSX/rsx_cache.h @@ -870,8 +870,8 @@ namespace rsx for (u8 index = 0; index < 16; ++index) { - data_block.fp_alphakill_mask |= (u32)(fp.textures_alpha_kill[index] & 0x1) << index; - data_block.fp_zfunc_mask |= (u32)(fp.textures_zfunc[index] & 0xF) << (index << 2); + data_block.fp_alphakill_mask |= u32(fp.textures_alpha_kill[index] & 0x1) << index; + data_block.fp_zfunc_mask |= u64(fp.textures_zfunc[index] & 0xF) << (index << 2); } return data_block;