demos: Fix Windows build warnrings
authorMark Lobodzinski <mark@lunarg.com>
Mon, 10 Oct 2016 20:05:36 +0000 (14:05 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 10 Oct 2016 20:05:36 +0000 (14:05 -0600)
Change-Id: I733704e8904a77aa9071565cfc1d18b23b1c0c1c

demos/cube.cpp

index 2be97bb..8d410bf 100644 (file)
@@ -2316,7 +2316,7 @@ struct Demo {
         }
 
         // Create window with the registered class:
-        RECT wr = {0, 0, width, height};
+        RECT wr = {0, 0, static_cast<LONG>(width), static_cast<LONG>(height)};
         AdjustWindowRect(&wr, WS_OVERLAPPEDWINDOW, FALSE);
         window = CreateWindowEx(0,
                                 name,                 // class name