From c5d9cced933394b470bf3d985d6dfeb9d30b6508 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Mon, 24 Oct 2016 16:54:40 -0400 Subject: loader: Fix cast warning Fix a cast warning found in loader.c. Change-Id: Ie39e84ce8f050a2655c2ad3a1a146dda17c15bf9 --- loader/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader') diff --git a/loader/loader.c b/loader/loader.c index 4dda59ab..184809b2 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -4475,7 +4475,7 @@ terminator_EnumeratePhysicalDevices(VkInstance instance, loader_set_dispatch((void *)&inst->phys_devs_term[idx], inst->disp); inst->phys_devs_term[idx].this_icd = phys_devs[i].this_icd; - inst->phys_devs_term[idx].icd_index = i; + inst->phys_devs_term[idx].icd_index = (uint8_t)(i); inst->phys_devs_term[idx].phys_dev = phys_devs[i].phys_devs[j]; if (idx < copy_count) { pPhysicalDevices[idx] = -- cgit v1.2.3