From b32372021aa03371dd54c75147ef6a3fe717e02b Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Wed, 10 Aug 2016 13:39:36 -0600 Subject: demos: Fix operator precedence problem with window width Change-Id: Ief0b260528a6eb38788f88ec8a463307522849e8 --- demos/cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/cube.c b/demos/cube.c index a62a7e8a..c6d7d79c 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; -- cgit v1.2.3