From: Brian Date: Thu, 22 Feb 2007 16:08:36 +0000 (-0700) Subject: fix negative indentation problem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b30053b264726156a018c822657270e745320ce;p=mesa.git fix negative indentation problem --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 9560ffad7da..95b62fcfb50 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -477,7 +477,7 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent, gl_prog_print_mode mode, const struct gl_program *prog) { - GLuint i; + GLint i; if (inst->Opcode == OPCODE_ELSE || inst->Opcode == OPCODE_ENDIF || @@ -485,7 +485,6 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent, inst->Opcode == OPCODE_ENDSUB) { indent -= 3; } - assert(indent >= 0); for (i = 0; i < indent; i++) { _mesa_printf(" "); }