eal/x86: fix integer cast in memcpy
authorMichael Qiu <michael.qiu@intel.com>
Fri, 6 Mar 2015 03:13:07 +0000 (11:13 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:46:46 +0000 (12:46 +0100)
commit7eb689794a219838472dc7c20604732b53b3c7e8
tree4d299dacbfb49d169cef74abead8b4aec7fc7d3e
parent76746eb13f088856711b2787ea5a0c5c29e46dbf
eal/x86: fix integer cast in memcpy

./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error:
cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]

  dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16;

Type 'long long' is 64-bit in i686 platform while 'void *'
is 32-bit.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
lib/librte_eal/common/include/arch/x86/rte_memcpy.h