Mesa (master): util: fix typo in MAX4

Keith Whitwell keithw at kemper.freedesktop.org
Fri Aug 27 05:34:27 PDT 2010


Module: Mesa
Branch: master
Commit: 04f8560dd826b62e96da5deed43910f767953707
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=04f8560dd826b62e96da5deed43910f767953707

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Aug 27 13:29:00 2010 +0100

util: fix typo in MAX4

Thanks to Michal for spotting it.

---

 src/gallium/auxiliary/util/u_math.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 6ba4e24..af510da 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -567,7 +567,7 @@ util_bswap16(uint16_t n)
 #define MAX3( A, B, C ) MAX2( MAX2( A, B ), C )
 
 #define MIN4( A, B, C, D ) MIN2( MIN2( A, B ), MIN2(C, D) )
-#define MAX4( A, B, C, D ) MAX2( MAX2( A, B ), MIN2(C, D) )
+#define MAX4( A, B, C, D ) MAX2( MAX2( A, B ), MAX2(C, D) )
 
 
 /**



More information about the mesa-commit mailing list