diff --git a/desmume/src/matrix.h b/desmume/src/matrix.h index b4795b2f1..2ee9cb82e 100644 --- a/desmume/src/matrix.h +++ b/desmume/src/matrix.h @@ -744,7 +744,7 @@ static void memset_u32_fast(void *dst, const u32 val) template static void buffer_copy_fast(void *__restrict dst, void *__restrict src) { - MACRODO_N( VECLENGTH / sizeof(v128s8), vec_st(vec_ld((X)*sizeof(v128s8),src), (X)*sizeof(v128s8), dst) ); + MACRODO_N( VECLENGTH / sizeof(v128s8), vec_st(vec_ld((X)*sizeof(v128s8),(u8 *__restrict)src), (X)*sizeof(v128s8), (u8 *__restrict)dst) ); } template @@ -752,7 +752,7 @@ static void stream_copy_fast(void *__restrict dst, void *__restrict src) { // AltiVec doesn't have the same temporal/caching distinctions that SSE and AVX do, // so just use buffer_copy_fast() for this function too. - buffer_copy_fast(dst, src, VECLENGTH); + buffer_copy_fast(dst, src); } template