app/testpmd: fix unintentional integer overflow
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 24 Apr 2019 02:29:31 +0000 (10:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit8efc716f7cadead969e3ca12c0d9ba2f2aa8a8f6
treecda94cc87cecdf593294067acc22e0f7e02065ea
parent994e039b953b06a385d4362e1729a150f1a02d77
app/testpmd: fix unintentional integer overflow

Fix the potential overflow in expression 1 << begin by using 1ULL.

Coverity issue: 279437, 279445
Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/cmdline.c