X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=memory.c;h=0194a83f7dca5020881cc00008fdbbbf49aaf02d;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hp=de10c11fb3b88f6ce75882b8db9dadeabddba03c;hpb=92764e6252a3691033d6044b466bf716c96b62d5;p=fceu.git diff --git a/memory.c b/memory.c index de10c11..0194a83 100644 --- a/memory.c +++ b/memory.c @@ -63,12 +63,12 @@ void FCEU_gfree(void *ptr) void FASTAPASS(3) FCEU_memmove(void *d, void *s, uint32 l) { uint32 x; - int t; + long t; /* Type really doesn't matter. */ - t=(int)d; - t|=(int)s; - t|=(int)l; + t=(long)d; + t|=(long)s; + t|=(long)l; if(t&3) // Not 4-byte aligned and/or length is not a multiple of 4. {