Re: [dpdk-dev] [PATCH] drivers/net: fix shifting 32-bit signed variable 31 times

2019-02-26 Thread Ferruh Yigit
On 2/19/2019 1:24 PM, Andrius Sirvys wrote: > Shifting signed 32-bit values by 31-bits has the potential for > unexpected outcomes as compiler can overwrite a bit. > Specified that values are unsigned. > > Errors are observed from running cppcheck. > > Bugzilla ID: 58 > Fixes: 69e209be5464 ("net

[dpdk-dev] [PATCH] drivers/net: fix shifting 32-bit signed variable 31 times

2019-02-19 Thread Andrius Sirvys
Shifting signed 32-bit values by 31-bits has the potential for unexpected outcomes as compiler can overwrite a bit. Specified that values are unsigned. Errors are observed from running cppcheck. Bugzilla ID: 58 Fixes: 69e209be5464 ("net/axgbe: add register map and related macros") Fixes: b5bf771