ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Wed Feb 18 01:39:57 2015 +0100| [0babb896b4352e48bd2157f7ef08b341f55f2d91] | committer: Michael Niedermayer
compat/avisynth/windowsPorts/windows2linux: Add () to protect macro arguments Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0babb896b4352e48bd2157f7ef08b341f55f2d91 --- 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 5476afe..7cf4600 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 _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
