loader: Fix 2 warnings detected in VS2015.
loader: Fix 2 warnings detected in VS2015.

warning C4456: declaration of 'i' hides previous local declaration
warning C4244: '=': conversion from 'int' to 'uint16_t', possible loss of data

Change-Id: I651de053b206afa36fce27af92ffbe0a608e89d0

KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools