examples/netmap: fix build for x32 ABI
Fix a cast issue: examples/netmap_compat/lib/compat_netmap.c:827:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
4ae39dfa69
commit
3d037e44a4
@ -824,7 +824,7 @@ rte_netmap_mmap(void *addr, size_t length,
|
||||
return (MAP_FAILED);
|
||||
}
|
||||
|
||||
return ((void *)((uintptr_t)netmap.mem + offset));
|
||||
return (void *)((uintptr_t)netmap.mem + (uintptr_t)offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user