From: Tony Barbour Date: Wed, 10 Aug 2016 19:39:36 +0000 (-0600) Subject: demos: Fix operator precedence problem with window width X-Git-Tag: upstream/1.1.92~2748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b32372021aa03371dd54c75147ef6a3fe717e02b;p=platform%2Fupstream%2FVulkan-Tools.git demos: Fix operator precedence problem with window width Change-Id: Ief0b260528a6eb38788f88ec8a463307522849e8 --- diff --git a/demos/cube.c b/demos/cube.c index a62a7e8..c6d7d79 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -1993,7 +1993,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { // with width=0 and height=0. if (wParam != SIZE_MINIMIZED) { demo.width = lParam & 0xffff; - demo.height = lParam & 0xffff0000 >> 16; + demo.height = (lParam & 0xffff0000) >> 16; demo_resize(&demo); } break;