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