From: José Fonseca Date: Tue, 24 Jun 2008 02:34:46 +0000 (+0900) Subject: mesa: Use appropriate unsigned/signed, float/integer types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=457d7218b8e0f0c21ae31564d25b7031b423b0f8;p=mesa.git mesa: Use appropriate unsigned/signed, float/integer types. --- diff --git a/src/mesa/main/mm.c b/src/mesa/main/mm.c index fb7809ed221..9f3aa00aff3 100644 --- a/src/mesa/main/mm.c +++ b/src/mesa/main/mm.c @@ -164,8 +164,8 @@ mmAllocMem(struct mem_block *heap, int size, int align2, int startSearch) { struct mem_block *p; const int mask = (1 << align2)-1; - unsigned int startofs = 0; - unsigned int endofs; + int startofs = 0; + int endofs; if (!heap || align2 < 0 || size <= 0) return NULL; diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 2932c9ebc50..55f862a392c 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -513,7 +513,7 @@ _mesa_insert_instructions(struct gl_program *prog, GLuint start, GLuint count) for (i = 0; i < prog->NumInstructions; i++) { struct prog_instruction *inst = prog->Instructions + i; if (inst->BranchTarget > 0) { - if (inst->BranchTarget >= start) { + if ((GLuint)inst->BranchTarget >= start) { inst->BranchTarget += count; } }