diff options
author | Thomas White <taw@physics.org> | 2021-07-21 15:22:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-22 11:22:18 +0200 |
commit | 13d65b9785d1557e29f5f06871d01bad8e76e44c (patch) | |
tree | dfd9c52a80639882695eb63b0c87af06ebcbb29d /libcrystfel/src/rational.c | |
parent | d5cf0404a08253f52c6ddf3f6d80e694b9de4e7a (diff) |
Clean up shadowed variables
Diffstat (limited to 'libcrystfel/src/rational.c')
-rw-r--r-- | libcrystfel/src/rational.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/rational.c b/libcrystfel/src/rational.c index 76aa7014..db02ee93 100644 --- a/libcrystfel/src/rational.c +++ b/libcrystfel/src/rational.c @@ -460,16 +460,16 @@ int transform_fractional_coords_rtnl(const RationalMatrix *P, rtnl_mtx_get(cm, h, k)); for ( j=0; j<cm->cols; j++ ) { - Rational t = rtnl_mtx_get(cm, i, j); + Rational tcol = rtnl_mtx_get(cm, i, j); Rational p = rtnl_mul(dval, rtnl_mtx_get(cm, h, j)); - t = rtnl_sub(t, p); - rtnl_mtx_set(cm, i, j, t); + tcol = rtnl_sub(tcol, p); + rtnl_mtx_set(cm, i, j, tcol); } /* Divide the right hand side as well */ - Rational t = vec[i]; + Rational trhs = vec[i]; Rational p = rtnl_mul(dval, vec[h]); - vec[i] = rtnl_sub(t, p); + vec[i] = rtnl_sub(trhs, p); } h++; |