Cast pointer to uintptr_t type to avoid compiler warnings
This commit is contained in:
parent
160d792399
commit
507309b0f5
@ -128,8 +128,8 @@ memcpy_misaligned(void *dest, const void *source, int len)
|
|||||||
int i;
|
int i;
|
||||||
uint8_t *destptr;
|
uint8_t *destptr;
|
||||||
const uint8_t *sourceptr;
|
const uint8_t *sourceptr;
|
||||||
if(((int)dest & 1) == 1 ||
|
if(((uintptr_t)dest & 1) == 1 ||
|
||||||
((int)source & 1) == 1) {
|
((uintptr_t)source & 1) == 1) {
|
||||||
destptr = dest;
|
destptr = dest;
|
||||||
sourceptr = source;
|
sourceptr = source;
|
||||||
for(i = 0; i < len; ++i) {
|
for(i = 0; i < len; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user