From b23b43b669a9a467bd5ed2f523dca943a75415e5 Mon Sep 17 00:00:00 2001 From: Helen Ginn Date: Sat, 21 Apr 2018 21:06:49 +0100 Subject: Declare integer outside for loop --- libcrystfel/src/taketwo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index 52602f14..efb5417d 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -1110,7 +1110,8 @@ static int grow_network(gsl_matrix *rot, int obs_idx1, int obs_idx2, *max_members = member_num; } - for (int n = 0; n < member_num; n++) + int n; + for (n = 0; n < member_num; n++) { STATUS("*"); } -- cgit v1.2.3