New upstream version 16.11.7
[deb_dpdk.git] / lib / librte_eal / common / include / rte_lcore.h
index fe7b586..da48a94 100644 (file)
@@ -134,7 +134,7 @@ rte_lcore_index(int lcore_id)
        if (lcore_id >= RTE_MAX_LCORE)
                return -1;
        if (lcore_id < 0)
-               lcore_id = rte_lcore_id();
+               lcore_id = (int)rte_lcore_id();
        return lcore_config[lcore_id].core_index;
 }