- fixed typo
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Oct 2008 13:38:46 +0000 (13:38 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Oct 2008 13:38:46 +0000 (13:38 +0000)
[r23322]

ir/ir/irprog.c

index 8d475de..43ab84d 100644 (file)
@@ -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];