From 954e03c3f738745526a30dcd785cfe19fef5e7f0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 6 May 2012 13:02:11 +0900 Subject: [PATCH] Report the correct function name for the largest locals. I must have been tired when I adapted that code. * taniwha dons brown paper bag --- tools/qfcc/source/obj_file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/obj_file.c b/tools/qfcc/source/obj_file.c index 6841c7956..f5f3993b9 100644 --- a/tools/qfcc/source/obj_file.c +++ b/tools/qfcc/source/obj_file.c @@ -794,9 +794,10 @@ qfo_to_progs (qfo_t *qfo, int *size) locals_start = qfo->spaces[qfo_near_data_space].data_size; for (i = qfo_num_spaces; i < qfo->num_spaces; i++) { if (options.code.local_merging) { - if (locals_size < qfo->spaces[i].data_size) + if (locals_size < qfo->spaces[i].data_size) { locals_size = qfo->spaces[i].data_size; - big_locals = i; + big_locals = i; + } } else { locals_size += qfo->spaces[i].data_size; }