Eliminate some Windows-compilation warnings.
authorIan Elliott <ian@LunarG.com>
Fri, 3 Apr 2015 15:54:13 +0000 (09:54 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:33:26 +0000 (17:33 +0800)
demos/cube.c
demos/tri.c

index 0221afa..ae95e7f 100644 (file)
@@ -1812,7 +1812,7 @@ static void demo_init_xgl(struct demo *demo)
     err = xglGetGpuInfo(demo->gpu, XGL_INFO_TYPE_PHYSICAL_GPU_QUEUE_PROPERTIES,
                         &data_size, demo->queue_props);
     assert(!err);
-    queue_count = data_size / sizeof(XGL_PHYSICAL_GPU_QUEUE_PROPERTIES);
+       queue_count = (uint32_t)(data_size / sizeof(XGL_PHYSICAL_GPU_QUEUE_PROPERTIES));
     assert(queue_count >= 1);
 
     for (i = 0; i < queue_count; i++) {
index 375300d..7c312a7 100644 (file)
@@ -1324,7 +1324,7 @@ static void demo_init_xgl(struct demo *demo)
     err = xglGetGpuInfo(demo->gpu, XGL_INFO_TYPE_PHYSICAL_GPU_QUEUE_PROPERTIES,
                         &data_size, demo->queue_props);
     assert(!err);
-    queue_count = data_size / sizeof(XGL_PHYSICAL_GPU_QUEUE_PROPERTIES);
+       queue_count = (uint32_t) (data_size / sizeof(XGL_PHYSICAL_GPU_QUEUE_PROPERTIES));
     assert(queue_count >= 1);
 
     for (i = 0; i < queue_count; i++) {