loader: Fix VS 2015 compiler warning
authorMark Young <marky@lunarg.com>
Tue, 28 Jun 2016 21:16:45 +0000 (15:16 -0600)
committerMark Young <marky@lunarg.com>
Tue, 28 Jun 2016 21:16:45 +0000 (15:16 -0600)
Fixed a type conversion compiler warning in VS 2015.

Change-Id: I6117e4cdc2a7770d5adae3a58ddfb027e80a8f57

libs/vkjson/vkjson_info.cc

index 98165de..dc80822 100644 (file)
@@ -162,7 +162,7 @@ int main(int argc, char* argv[]) {
       !options.device_name.empty()) {
     Dump(instance, options);
   } else {
-    for (uint32_t i = 0, n = instance.devices.size(); i < n; i++) {
+    for (uint32_t i = 0, n = static_cast<uint32_t>(instance.devices.size()); i < n; i++) {
       options.device_index = i;
       Dump(instance, options);
     }