From: Brian Paul Date: Tue, 10 Jan 2012 19:26:58 +0000 (-0700) Subject: mesa: fix > vs. >> typo in EXPAND_3_8() macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=991479ef51a04b7a6828b19571665401883ef916;p=mesa.git mesa: fix > vs. >> typo in EXPAND_3_8() macro Found by Eirik Byrkjeflot Anonsen. --- diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index a7308a1578f..ff98c69cd7a 100644 --- a/src/mesa/main/format_unpack.c +++ b/src/mesa/main/format_unpack.c @@ -36,7 +36,7 @@ #define EXPAND_2_8(X) ( ((X) << 6) | ((X) << 4) | ((X) << 2) | (X) ) -#define EXPAND_3_8(X) ( ((X) << 5) | ((X) << 2) | ((X) > 1) ) +#define EXPAND_3_8(X) ( ((X) << 5) | ((X) << 2) | ((X) >> 1) ) #define EXPAND_4_8(X) ( ((X) << 4) | (X) )