X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMisc.c;h=a092b93b8fe53f1d04baf00507f07ae6f836990c;hb=80db44425aa5b46185fb9a64520f4b6f5d494ba5;hp=a458f4de120f4c2a36a3e59fab7c7d2280dddfcd;hpb=e41da5ce0729c7c1e1d87c881a8cb45c92bab531;p=picodrive.git diff --git a/Pico/Misc.c b/Pico/Misc.c index a458f4d..a092b93 100644 --- a/Pico/Misc.c +++ b/Pico/Misc.c @@ -330,7 +330,7 @@ typedef struct PICO_INTERNAL_ASM void memcpy16(unsigned short *dest, unsigned short *src, int count) { - if (((int)dest & (int)src & 3) == 0) + if ((((int)dest | (int)src) & 3) == 0) { if (count >= 32) { memcpy32((int *)dest, (int *)src, count/2);