aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2003-08-30 14:45:04 +0000
committerKarl Schultz <[email protected]>2003-08-30 14:45:04 +0000
commitdc24230de7f913969b52dee3579bb8fa3d50a8c0 (patch)
tree721e30477f9c529d562fa4bd2b71e465b4ed7fd0 /src/mesa/main/macros.h
parentd12a871b21adee531661f4cf6561d2ffda685359 (diff)
Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions.
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index f3c77ca5fca..fcb63f53f20 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -146,6 +146,15 @@ do { \
(DST)[3] = (SRC)[3]; \
} while (0)
+/** Copy a 4-element vector with cast */
+#define COPY_4V_CAST( DST, SRC, CAST ) \
+do { \
+ (DST)[0] = (CAST)(SRC)[0]; \
+ (DST)[1] = (CAST)(SRC)[1]; \
+ (DST)[2] = (CAST)(SRC)[2]; \
+ (DST)[3] = (CAST)(SRC)[3]; \
+} while (0)
+
/** Copy a 4-element unsigned byte vector */
#if defined(__i386__)
#define COPY_4UBV(DST, SRC) \