Mesa (master): mesa: use BITFIELD64_BIT() macro

Brian Paul brianp at kemper.freedesktop.org
Wed Jun 2 14:35:13 PDT 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jun  2 14:48:27 2010 -0600

mesa: use BITFIELD64_BIT() macro

---

 src/mesa/shader/prog_print.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index f66c240..05aae83 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -876,7 +876,7 @@ binary(GLbitfield64 val)
    static char buf[80];
    GLint i, len = 0;
    for (i = 63; i >= 0; --i) {
-      if (val & (1ULL << i))
+      if (val & (BITFIELD64_BIT(i)))
          buf[len++] = '1';
       else if (len > 0 || i == 0)
          buf[len++] = '0';



More information about the mesa-commit mailing list