From: Wolfgang (Blub) Bumiller Date: Wed, 22 Aug 2012 14:19:35 +0000 (+0200) Subject: fixing some debug output X-Git-Tag: 0.1-rc1~94 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb86a3d7a3a232d3312f3bb7adb6ab421182aada;p=xonotic%2Fgmqcc.git fixing some debug output --- diff --git a/ir.c b/ir.c index cb44f39..1f09a9a 100644 --- a/ir.c +++ b/ir.c @@ -2927,16 +2927,16 @@ void ir_function_dump(ir_function *f, char *ind, ir_value *v = f->locals[i]; oprintf("%s\t%s: ", ind, v->name); for (l = 0; l < v->life_count; ++l) { - oprintf("[%i,%i] ", v->life[i].start, v->life[i].end); + oprintf("[%i,%i] ", v->life[l].start, v->life[l].end); } oprintf("\n"); } for (i = 0; i < f->values_count; ++i) { size_t l; ir_value *v = f->values[i]; - oprintf("%s\t%s: ", ind, v->name); + oprintf("%s\t%s: (%i)", ind, v->name, (int)v->life_count); for (l = 0; l < v->life_count; ++l) { - oprintf("[%i,%i] ", v->life[i].start, v->life[i].end); + oprintf("[%i,%i] ", v->life[l].start, v->life[l].end); } oprintf("\n"); }