mesa: fix truncated value warning
authorDylan Noblesmith <nobled@dreamwidth.org>
Sun, 1 Apr 2012 18:59:28 +0000 (18:59 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Fri, 13 Apr 2012 14:25:08 +0000 (14:25 +0000)
commit52d021d4d785a4567b9e73ef89e74a295e8cfed9
treea7ab86a6534fbaeedbffbb3c41c3e253814604da
parent75fe7d1995cc828e821efddfaee8cbc52e27a52c
mesa: fix truncated value warning

Silences a clang warning:

format_pack.c:2546:30: warning: implicit conversion from 'int' to
'GLubyte' (aka 'unsigned char') changes value from 65535 to 255
[-Wconstant-conversion]
               d[i] = d[i] ? 0xffff : 0x0;
                           ~ ^~~~~~

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/format_pack.c