eal: explicit cast of core id when getting index
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 01:59:07 +0000 (09:59 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:12 +0000 (22:45 +0200)
commitef3c7b50ff39a37a93ecea47481d392d8fcb2936
tree60fb3b7a2bd03978bd14215702c83c6ee47a00f9
parent54a93341ccaaf3665352ddad0807cf3ed40c36f9
eal: explicit cast of core id when getting index

rte_lcore.h: In function 'rte_lcore_index':
rte_lcore.h:122:14:
warning: conversion to 'int' from 'unsigned int' may change
the sign of the result [-Wsign-conversion]
   lcore_id = rte_lcore_id();

Fixes: 5583037a7950 ("eal: get relative core index")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/include/rte_lcore.h