[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-09 Thread Thomas Monjalon
> > ./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

[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-09 Thread Wang, Zhihong
> -Original Message- > From: Qiu, Michael > Sent: Friday, March 06, 2015 11:13 AM > To: dev at dpdk.org > Cc: Qiu, Michael; Wang, Zhihong > Subject: [PATCH] librte_eal/common: Fix cast from pointer to integer of > different size > >

[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-06 Thread Michael Qiu
./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

[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-02 Thread Gonzalez Monroy, Sergio
On 02/03/2015 07:27, Michael Qiu wrote: > /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