diff options
author | Thomas White <taw@physics.org> | 2020-09-11 15:08:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-11 15:08:16 +0200 |
commit | 4b28471c9a69c2e15f7ce802e2cba4605163ed0c (patch) | |
tree | 23c1707e9681dc167db2e3b53da190e60c88308a /libcrystfel/src | |
parent | b6a6456de3a4de799d2b5226b1375221fa2d9ec5 (diff) |
xgandalf: Remove C99-style 'for' declarations
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/indexers/xgandalf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/indexers/xgandalf.c b/libcrystfel/src/indexers/xgandalf.c index 3a44bf04..a0ce768d 100644 --- a/libcrystfel/src/indexers/xgandalf.c +++ b/libcrystfel/src/indexers/xgandalf.c @@ -84,12 +84,13 @@ static void makeRightHanded(UnitCell* cell); int run_xgandalf(struct image *image, void *ipriv) { + int i; struct xgandalf_private_data *xgandalf_private_data = (struct xgandalf_private_data*) ipriv; reciprocalPeaks_1_per_A_t *reciprocalPeaks_1_per_A = &(xgandalf_private_data->reciprocalPeaks_1_per_A); int peakCountMax = image_feature_count(image->features); reciprocalPeaks_1_per_A->peakCount = 0; - for (int i = 0; i < peakCountMax && i < MAX_PEAK_COUNT_FOR_INDEXER; i++) { + for ( i = 0; i < peakCountMax && i < MAX_PEAK_COUNT_FOR_INDEXER; i++) { struct imagefeature *f; f = image_get_feature(image->features, i); if (f == NULL) { @@ -116,7 +117,7 @@ int run_xgandalf(struct image *image, void *ipriv) } int goodLatticesCount = assembledLatticesCount; - for (int i = 0; i < assembledLatticesCount && i < 1; i++) { + for ( i = 0; i < assembledLatticesCount && i < 1; i++) { reorderLattice(&(xgandalf_private_data->sampleRealLattice_A), &assembledLattices[i]); |