diff options
author | Thomas White <taw@physics.org> | 2017-05-18 14:30:59 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-05-18 14:30:59 +0200 |
commit | 9d798b597f0a8ff93387c65d5f5124d7329aba83 (patch) | |
tree | 8fc5ff654c568c9e20ee7638c10338675d4e5881 /libcrystfel | |
parent | 8f14feabfd85a73a747051c5f77443ed6b65c7c2 (diff) |
Small fixes
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/taketwo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index 54741bd2..e99e3dca 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -812,11 +812,11 @@ static int weed_duplicate_matches(struct SpotVec *her_obs, int **her_match_idxs, int **his_match_idxs, int *match_count, struct TakeTwoCell *cell) { - gsl_matrix **old_mats = calloc(sizeof(gsl_matrix *) * match_count); int num_occupied = 0; + gsl_matrix **old_mats = calloc(*match_count, sizeof(gsl_matrix *)); signed int i, j; - for (i = match_count - 1; i >= 0; i++) { + for (i = *match_count - 1; i >= 0; i++) { int her_match = (*her_match_idxs)[i]; int his_match = (*his_match_idxs)[i]; @@ -957,7 +957,7 @@ static int find_seed(struct SpotVec *obs_vecs, int obs_vec_count, return (best_rotation != NULL); } -static int generate_rotation_sym_ops(TakeTwoCell *ttCell) +static int generate_rotation_sym_ops(struct TakeTwoCell *ttCell) { LatticeType lattice = cell_get_lattice_type(ttCell->cell); SymOpList rawList; |