target/arm/vec_helper: Remove use of void pointer arithmetic

This is a GNU-specific extension.
This commit is contained in:
Lioncash 2019-01-30 14:02:45 -05:00
parent 8f5693322b
commit 8eaa850287
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -41,7 +41,7 @@
static void clear_tail(void *vd, uintptr_t opr_sz, uintptr_t max_sz) static void clear_tail(void *vd, uintptr_t opr_sz, uintptr_t max_sz)
{ {
uint64_t *d = vd + opr_sz; uint64_t *d = (uint64_t *)((char *)vd + opr_sz);
uintptr_t i; uintptr_t i;
for (i = opr_sz; i < max_sz; i += 8) { for (i = opr_sz; i < max_sz; i += 8) {