examples/qos_sched: fix lcore limit
authorSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Wed, 11 May 2016 08:48:05 +0000 (10:48 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 May 2016 16:49:12 +0000 (18:49 +0200)
commitd52b5e735aa396600578f6e614bccb0cada99184
tree05240851008624e026419c5312b0d7f1b9608f07
parentf2c41f26f82416d98ea77ec06b26c660a67feef6
examples/qos_sched: fix lcore limit

In expression 1ULL << i, left shifting by more than 63 bits
has undefined behavior. The shift amount, i, is as much as 127.

Coverity issue: 30690
Fixes: de3cfa2c9823 ("sched: initial import")

Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/qos_sched/args.c
examples/qos_sched/main.h