mesa: add parenthesis
authorBrian Paul <brianp@vmware.com>
Mon, 5 Oct 2009 23:27:50 +0000 (17:27 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Oct 2009 23:27:50 +0000 (17:27 -0600)
src/mesa/main/colormac.h

index 815624ee5080c5f1101a702f724e2d2015db8a3a..7ae781ae23d5644d68c3fb125b93f19b965e51e9 100644 (file)
  */
 #define UNCLAMPED_FLOAT_TO_RGB_CHAN(dst, f)    \
 do {                                           \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[0], f[0]);      \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[1], f[1]);      \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[2], f[2]);      \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[0], (f)[0]);  \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[1], (f)[1]);  \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[2], (f)[2]);  \
 } while (0)
 
 
@@ -156,10 +156,10 @@ do {                                              \
  */
 #define UNCLAMPED_FLOAT_TO_RGBA_CHAN(dst, f)   \
 do {                                           \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[0], f[0]);      \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[1], f[1]);      \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[2], f[2]);      \
-   UNCLAMPED_FLOAT_TO_CHAN(dst[3], f[3]);      \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[0], (f)[0]);  \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[1], (f)[1]);  \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[2], (f)[2]);  \
+   UNCLAMPED_FLOAT_TO_CHAN((dst)[3], (f)[3]);  \
 } while (0)