fix for r2555

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2586 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99 2009-03-07 05:26:28 +00:00
parent 3d2ef57d7d
commit 6a3dcab154
1 changed files with 1 additions and 1 deletions

View File

@ -1106,7 +1106,7 @@ bool GCMemcard::Format( bool New, int slot, bool sjis, bool hdrOnly)
for(int i = 0; i < 12; i++)
{
rand = (((rand * (u64)0x0000000041c64e6dULL) + (u64)0x0000000000003039ULL) >> 16);
hdr.serial[i] = u8((m_SRAM.syssram.flash_id[slot][i] + (u32)rand));
hdr.serial[i] = (u8)(m_SRAM.syssram.flash_id[slot][i] + (u32)rand);
rand = (((rand * (u64)0x0000000041c64e6dULL) + (u64)0x0000000000003039ULL) >> 16);
rand &= (u64)0x0000000000007fffULL;
}