X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fz80if.c;h=5efeff894d34d1499718021f26542d3156c1eb6d;hb=6732b5aa452171d58778bb3dfe62232b0fd73866;hp=8db4aa5c31e08ca24fef16284229bf5e81311832;hpb=18d52d134ece892c7d427e185169b79d3e409271;p=picodrive.git diff --git a/pico/z80if.c b/pico/z80if.c index 8db4aa5..5efeff8 100644 --- a/pico/z80if.c +++ b/pico/z80if.c @@ -121,8 +121,8 @@ static int z80_unpack_legacy(const void *data) } #elif defined(_USE_CZ80) if (*(int *)data == 0x00007a43) { // "Cz" save? - memcpy(&CZ80, data+8, offsetof(cz80_struc, BasePC)); - Cz80_Set_Reg(&CZ80, CZ80_PC, *(int *)(data+4)); + memcpy(&CZ80, (int*)data+8, offsetof(cz80_struc, BasePC)); + Cz80_Set_Reg(&CZ80, CZ80_PC, *(int *)((int*)data+4)); return 0; } #endif