From 991479ef51a04b7a6828b19571665401883ef916 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 10 Jan 2012 12:26:58 -0700 Subject: [PATCH] mesa: fix > vs. >> typo in EXPAND_3_8() macro Found by Eirik Byrkjeflot Anonsen. --- src/mesa/main/format_unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) -- 2.30.2