X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=d3123868c49eb3a6028ca0aecc481bab4621c571;hb=e05b81fc5b3f640496795ced5d893ece4cc51c2d;hp=96025fff739d6bdf9974a2aead01f728902fe42e;hpb=1d7a28a723d59da67b58e42a61bc9f1905044fd5;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index 96025ff..d312386 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -61,7 +61,7 @@ void PicoPower(void) Pico.m.frame_count = 0; // clear all memory of the emulated machine - memset(&Pico.ram,0,(unsigned int)&Pico.rom-(unsigned int)&Pico.ram); + memset(&Pico.ram,0,(unsigned char *)&Pico.rom - Pico.ram); memset(&Pico.video,0,sizeof(Pico.video)); memset(&Pico.m,0,sizeof(Pico.m));