From: Michael Beck Date: Fri, 31 Oct 2008 13:38:46 +0000 (+0000) Subject: - fixed typo X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=464ca23e15b5059d4f7f3b00d220659996104476;p=libfirm - fixed typo [r23322] --- diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index 8d475de44..43ab84d1a 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -263,15 +263,15 @@ ir_graph *get_irp_allirg(int pos) { void add_irp_type(ir_type *typ) { assert(typ != NULL); assert(irp); - ARR_APP1 (ir_type *, irp->types, typ); + ARR_APP1(ir_type *, irp->types, typ); } -/* Remove type form the list of types in irp. */ +/* Remove type from the list of types in irp. */ void remove_irp_type(ir_type *typ) { int i; assert(typ); - for (i = ARR_LEN(irp->types) -1; i >= 0; i--) { + for (i = ARR_LEN(irp->types) - 1; i >= 0; i--) { if (irp->types[i] == typ) { for(; i < (ARR_LEN(irp->types)) - 1; i++) { irp->types[i] = irp->types[i+1];