Update m3d.h

Try to fix build error.
pull/2885/head
Kim Kulling 2020-03-27 15:39:49 +01:00 committed by GitHub
parent 60750161d5
commit 7a01061c3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5474,7 +5474,8 @@ unsigned char *m3d_save(m3d_t *model, int quality, int flags, unsigned int *size
}
out = _m3d_addidx(out, sk_s, vrtx[i].data.skinid);
}
memcpy(length, &(uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len)), sizeof(uint32_t));
uint32_t v = (uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len));
memcpy(length, &v, sizeof(uint32_t));
//*length = (uint32_t)((uintptr_t)out - (uintptr_t)((uint8_t *)h + len));
out = NULL;
len += *length;