aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-04-03 09:54:13 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:33:26 +0800
commit8e777be1bb338082769c8d764e8a5331f0009e9d (patch)
treeb7635a1fd1e48825a7b84dcf0e6fb7f2847e1e0e
parent8bfaf6d3c15e9914d3030d69a0af479818537ccb (diff)
downloadusermoji-8e777be1bb338082769c8d764e8a5331f0009e9d.tar.xz
Eliminate some Windows-compilation warnings.
-rw-r--r--demos/cube.c2
-rw-r--r--demos/tri.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 0221afa5..ae95e7f4 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -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++) {
diff --git a/demos/tri.c b/demos/tri.c
index 375300db..7c312a79 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -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++) {