diff options
Diffstat (limited to 'libcrystfel/src/rational.c')
-rw-r--r-- | libcrystfel/src/rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/rational.c b/libcrystfel/src/rational.c index 5138c3e9..335685e0 100644 --- a/libcrystfel/src/rational.c +++ b/libcrystfel/src/rational.c @@ -236,7 +236,7 @@ Rational *rtnl_list(signed int num_min, signed int num_max, if ( (n>0) && (rtnl_cmp(list[n-1], r)==0) ) continue; /* Can be reduced? */ - if ( gcd(num, den) != 1 ) continue; + if ( abs(gcd(num, den)) != 1 ) continue; list[n++] = r; } |