From 0babb896b4352e48bd2157f7ef08b341f55f2d91 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 18 Feb 2015 01:39:57 +0100 Subject: [PATCH] compat/avisynth/windowsPorts/windows2linux: Add () to protect macro arguments Signed-off-by: Michael Niedermayer --- compat/avisynth/windowsPorts/windows2linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/avisynth/windowsPorts/windows2linux.h b/compat/avisynth/windowsPorts/windows2linux.h index 5476afe847..7cf4600266 100644 --- a/compat/avisynth/windowsPorts/windows2linux.h +++ b/compat/avisynth/windowsPorts/windows2linux.h @@ -52,8 +52,8 @@ namespace avxsynth { // // Functions // -#define MAKEDWORD(a,b,c,d) ((a << 24) | (b << 16) | (c << 8) | (d)) -#define MAKEWORD(a,b) ((a << 8) | (b)) +#define MAKEDWORD(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) +#define MAKEWORD(a,b) (((a) << 8) | (b)) #define lstrlen strlen #define lstrcpy strcpy