From 85bf102f54cfae9945d26f1edc0e642975881dfa Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Mar 2015 11:43:02 +0100 Subject: win32: fix some more -Wparentheses warnings Stupid compiler. For decode_surrogate_pair(), I changed the order of evaluation; it shouldn't matter, but this order is more readable in my opinion. --- video/out/vo_direct3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_direct3d.c') diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index bf24d164c8..1977d64a11 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -964,7 +964,7 @@ render_osd: // Return the high byte of the value that represents white in chroma (U/V) static int get_chroma_clear_val(int bit_depth) { - return 1 << (bit_depth - 1 & 7); + return 1 << ((bit_depth - 1) & 7); } // this macro is supposed to work on all formats supported by 3D rendering, and -- cgit v1.2.3