diff options
author | Thomas White <taw@physics.org> | 2021-07-23 12:53:26 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 12:53:26 +0200 |
commit | 1e082213588a414e887df7ed1a5dc5efaae23c11 (patch) | |
tree | c34e16c1209dd58579101411b5d635087e6a019c /libcrystfel/src/symmetry.c | |
parent | 9432ce40469f10ddb869391f684351c3292c3a19 (diff) |
do_op/get_matrix_name: Rename shadow variables
Diffstat (limited to 'libcrystfel/src/symmetry.c')
-rw-r--r-- | libcrystfel/src/symmetry.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c index af627c44..b11db684 100644 --- a/libcrystfel/src/symmetry.c +++ b/libcrystfel/src/symmetry.c @@ -1102,12 +1102,12 @@ static void do_op(const IntegerMatrix *op, signed int h, signed int k, signed int l, signed int *he, signed int *ke, signed int *le) { - signed int v[3]; + signed int vec[3]; signed int *ans; - v[0] = h; v[1] = k; v[2] = l; + vec[0] = h; vec[1] = k; vec[2] = l; - ans = transform_indices(op, v); + ans = transform_indices(op, vec); assert(ans != NULL); *he = ans[0]; *ke = ans[1]; *le = ans[2]; @@ -1708,21 +1708,21 @@ char *get_matrix_name(const IntegerMatrix *m, int col) for ( i=0; i<3; i++ ) { - signed int v; + signed int val; - v = intmat_get(m, i, col); + val = intmat_get(m, i, col); - if ( v == 0 ) continue; + if ( val == 0 ) continue; - if ( v < 0 ) { + if ( val < 0 ) { add_chars(text, "-", max_len); } else { if ( printed ) add_chars(text, "+", max_len); } - if ( abs(v) > 1 ) { + if ( abs(val) > 1 ) { char num[11]; - snprintf(num, 11, "%i", abs(v)); + snprintf(num, 11, "%i", abs(val)); add_chars(text, num, max_len); } |