projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6533df
)
mesa: fix > vs. >> typo in EXPAND_3_8() macro
author
Brian Paul
<brianp@vmware.com>
Tue, 10 Jan 2012 19:26:58 +0000
(12:26 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 10 Jan 2012 19:37:38 +0000
(12:37 -0700)
Found by Eirik Byrkjeflot Anonsen.
src/mesa/main/format_unpack.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/format_unpack.c
b/src/mesa/main/format_unpack.c
index a7308a1578fb5b3a935bef650003f23bf2020d49..ff98c69cd7a04abd5bb5d93e2ae710e2ba8d0ef3 100644
(file)
--- 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) )