changeset 31675:a40db79e6672

Add () around macro arguments.
author reimar
date Thu, 15 Jul 2010 18:46:49 +0000
parents 4996a06d9844
children a0a48c62bb8c
files libvo/gl_common.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.h	Thu Jul 15 18:36:15 2010 +0000
+++ b/libvo/gl_common.h	Thu Jul 15 18:46:49 2010 +0000
@@ -340,11 +340,11 @@
 //! shift value for chrominance scaler type
 #define YUV_CHROM_SCALER_SHIFT 12
 //! extract conversion out of type
-#define YUV_CONVERSION(t) (t & YUV_CONVERSION_MASK)
+#define YUV_CONVERSION(t) ((t) & YUV_CONVERSION_MASK)
 //! extract luminance scaler out of type
-#define YUV_LUM_SCALER(t) ((t >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK)
+#define YUV_LUM_SCALER(t) (((t) >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK)
 //! extract chrominance scaler out of type
-#define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK)
+#define YUV_CHROM_SCALER(t) (((t) >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK)
 /** \} */
 
 typedef struct {