File sinddiebescheuert.patch of Package neo4all
--- src/main.cpp
+++ src/main.cpp
@@ -273,9 +273,9 @@
console_puts("NEOGEO: Allocating memory...");
#ifdef AES
#ifndef DREAMCAST
- unsigned mem = (unsigned)calloc(aes4all_memory_total,1);
+ char* mem = (char*)calloc(aes4all_memory_total,1);
#else
- unsigned mem = (unsigned)aes4all_mmu;
+ char* mem = (char*)aes4all_mmu;
#endif
aes4all_memory = (void *)mem;
neogeo_prg_memory = (char *)mem;
--- src/video/videogl.cpp
+++ src/video/videogl.cpp
@@ -64,7 +64,7 @@
if (neo4all_texture_buffer==NULL)
{
neo4all_texture_buffer_free=calloc(64+(16*16*2),1);
- neo4all_texture_buffer=(void *)(((((unsigned)neo4all_texture_buffer_free)+32)/32)*32);
+ neo4all_texture_buffer=(void *)(((((unsigned long)neo4all_texture_buffer_free)+32)/32)*32);
#ifdef DREAMCAST
{
unsigned dcpvrmem=(unsigned)pvr_mem_malloc(
@@ -169,12 +169,12 @@
unsigned i;
tcache_hash_init();
for(i=0;i<TCACHE_SIZE;i++)
- cache_tile[i].rec=(unsigned short *)(((unsigned)neo4all_texture_real_buffer)+i*16*16*2);
+ cache_tile[i].rec=(unsigned short *)(((char*)neo4all_texture_real_buffer)+i*16*16*2);
tcache_hash_init();
fcache_hash_init();
for(i=0;i<FCACHE_SIZE;i++)
- cache_font[i].rec=(unsigned short *)(((unsigned)neo4all_font_real_buffer)+i*8*8*2);
+ cache_font[i].rec=(unsigned short *)(((char*)neo4all_font_real_buffer)+i*8*8*2);
fcache_hash_init();
n_tile_list=0;
n_font_list=0;
--- src/z80/z80intrf.cpp
+++ src/z80/z80intrf.cpp
@@ -332,7 +332,7 @@
#ifdef Z80_ONLY_CHANGES_PATCH
z80_bank[3]=PortNo;
#endif
- change_z80_map(0xf000, ((unsigned)((PortNo>>8)&0x7f))<<11, 0x0800);
+ change_z80_map(0xf000, ((unsigned long)((PortNo>>8)&0x7f))<<11, 0x0800);
}
break;
@@ -344,7 +344,7 @@
#ifdef Z80_ONLY_CHANGES_PATCH
z80_bank[2]=PortNo;
#endif
- change_z80_map(0xe000, ((unsigned)((PortNo>>8)&0x3f))<<12, 0x1000);
+ change_z80_map(0xe000, ((unsigned long)((PortNo>>8)&0x3f))<<12, 0x1000);
}
break;
@@ -356,7 +356,7 @@
#ifdef Z80_ONLY_CHANGES_PATCH
z80_bank[1]=PortNo;
#endif
- change_z80_map(0xc000, ((unsigned)((PortNo>>8)&0x1f))<<13, 0x2000);
+ change_z80_map(0xc000, ((unsigned long)((PortNo>>8)&0x1f))<<13, 0x2000);
}
break;
@@ -368,7 +368,7 @@
#ifdef Z80_ONLY_CHANGES_PATCH
z80_bank[0]=PortNo;
#endif
- change_z80_map(0x8000, ((unsigned)((PortNo>>8)&0x0f))<<14, 0x4000);
+ change_z80_map(0x8000, ((unsigned long)((PortNo>>8)&0x0f))<<14, 0x4000);
}
break;
#endif