tgsi: Silent msvc warning.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 22 Jul 2008 13:07:22 +0000 (22:07 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 24 Jul 2008 12:23:08 +0000 (21:23 +0900)
Rather stupid warning: msvc is warning that converting from a 1bit
structure bitfield to a unsigned char looses precision... /WX makes this
an error.

src/gallium/auxiliary/tgsi/util/tgsi_sanity.c

index 9673f061ce3f6e0fa582abbeac740229e47d7443..2e3ec96b5b5c91e9727d40d83500902708d589b5 100644 (file)
@@ -198,7 +198,7 @@ iter_instruction(
          inst->FullSrcRegisters[i].SrcRegister.File,
          inst->FullSrcRegisters[i].SrcRegister.Index,
          "source",
-         inst->FullSrcRegisters[i].SrcRegister.Indirect );
+         (boolean)inst->FullSrcRegisters[i].SrcRegister.Indirect );
       if (inst->FullSrcRegisters[i].SrcRegister.Indirect) {
          uint file;
          int index;