X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmisc.c;h=539416d62aaf5e1d45d7d524013a9a45f6b327f0;hb=b8a1c09ad1ef0b807c2eb1632d34e6bfae14b633;hp=4e344fc5a37d91e20a9c775630e75c6121a43927;hpb=71f68165b6e50f58ddbc6e98a38c7dd4968ccca2;p=picodrive.git diff --git a/pico/misc.c b/pico/misc.c index 4e344fc..539416d 100644 --- a/pico/misc.c +++ b/pico/misc.c @@ -101,7 +101,7 @@ typedef struct PICO_INTERNAL_ASM void memcpy16(unsigned short *dest, unsigned short *src, int count) { - if ((((int)dest | (int)src) & 3) == 0) + if ((((long)dest | (long)src) & 3) == 0) { if (count >= 32) { memcpy32((int *)dest, (int *)src, count/2);