summaryrefslogtreecommitdiff
path: root/examples/netmap_compat
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2015-05-18 10:17:59 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-05-19 17:35:33 +0200
commit3d037e44a48318e66681dc861bd86eb15921b74c (patch)
tree7f8fd9ded41d918baa538941e011b60a50f84103 /examples/netmap_compat
parent4ae39dfa69ad9a1ae6174f52c60c187d2843402b (diff)
downloaddpdk-draft-windows-3d037e44a48318e66681dc861bd86eb15921b74c.zip
dpdk-draft-windows-3d037e44a48318e66681dc861bd86eb15921b74c.tar.gz
dpdk-draft-windows-3d037e44a48318e66681dc861bd86eb15921b74c.tar.xz
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>
Diffstat (limited to 'examples/netmap_compat')
-rw-r--r--examples/netmap_compat/lib/compat_netmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c
index 1d86ef0..856ab6e 100644
--- a/examples/netmap_compat/lib/compat_netmap.c
+++ b/examples/netmap_compat/lib/compat_netmap.c
@@ -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);
}
/**