notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port to 64bit. Some gcc 4.4 warning fixes
[picodrive.git]
/
pico
/
pico.c
diff --git
a/pico/pico.c
b/pico/pico.c
index
96025ff
..
d312386
100644
(file)
--- a/
pico/pico.c
+++ b/
pico/pico.c
@@
-61,7
+61,7
@@
void PicoPower(void)
Pico.m.frame_count = 0;
\r
\r
// clear all memory of the emulated machine
\r
Pico.m.frame_count = 0;
\r
\r
// clear all memory of the emulated machine
\r
- memset(&Pico.ram,0,(unsigned
int)&Pico.rom-(unsigned int)&
Pico.ram);
\r
+ memset(&Pico.ram,0,(unsigned
char *)&Pico.rom -
Pico.ram);
\r
\r
memset(&Pico.video,0,sizeof(Pico.video));
\r
memset(&Pico.m,0,sizeof(Pico.m));
\r
\r
memset(&Pico.video,0,sizeof(Pico.video));
\r
memset(&Pico.m,0,sizeof(Pico.m));
\r