diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-07-01 10:48:54 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-07-01 10:48:54 +0000 |
| commit | 1f5a3c7ba462489e5a7a00580b0c0c6ce9cb3275 (patch) | |
| tree | 71e342f07f356562beebc04a98137ae5693aab8f /libpcsxcore | |
| parent | b62a83071df627179761ec75b6a3a9598de2008f (diff) | |
| download | pcsxr-1f5a3c7ba462489e5a7a00580b0c0c6ce9cb3275.tar.gz | |
fixed MSVC6 error
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23861 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/psxbios.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 16f23e7a..d55ee101 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -613,14 +613,14 @@ void psxBios_InitHeap() { // 39 #endif unsigned int size; - + if (((a0 & 0x1fffff) + a1)>= 0x200000) size = 0x1ffffc - (a0 & 0x1fffff); else size = a1; - + size &= 0xfffffffc; - - heap_addr = (u32*)Ra0; - heap_end = (u32*)((void *)heap_addr + size); + + heap_addr = (u32 *)Ra0; + heap_end = (u32 *)((u8 *)heap_addr + size); *heap_addr = SWAP32(size | 1); SysPrintf("InitHeap %lx,%lx : %lx %lx\n",a0,a1, (uptr)heap_addr-(uptr)psxM, size); |
