tgsi: silence MSVC signed/unsigned comparison warnings

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2012-10-16 18:32:57 -06:00
parent 34a5fd2a39
commit 198d1bdb5f
2 changed files with 2 additions and 2 deletions

View file

@ -406,7 +406,7 @@ iter_property(
struct tgsi_iterate_context *iter,
struct tgsi_full_property *prop )
{
int i;
unsigned i;
struct dump_ctx *ctx = (struct dump_ctx *)iter;
TXT( "PROPERTY " );

View file

@ -1057,7 +1057,7 @@ fetch_src_file_channel(const struct tgsi_exec_machine *mach,
const uint *buf = (const uint *)mach->Consts[constbuf];
const int pos = index->i[i] * 4 + swizzle;
/* const buffer bounds check */
if (pos < 0 || pos >= mach->ConstsSize[constbuf]) {
if (pos < 0 || pos >= (int) mach->ConstsSize[constbuf]) {
if (0) {
/* Debug: print warning */
static int count = 0;