ToRationalEuclideanGCD: remove useless test that confuses Coverity Scan about a potential later modulo by zero

This commit is contained in:
Even Rouault 2020-02-28 20:40:27 +01:00
parent 388a1dba72
commit facb37f149
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -2770,7 +2770,7 @@ void ToRationalEuclideanGCD(double value, int blnUseSignedRange, int blnUseSmall
/* if bigDenom is not zero, calculate integer part of fraction. */
if (bigDenom == 0) {
val = 0;
if (i > 0) break; /* if bigDenom is zero, exit loop, but execute loop just once */
break;
}
else {
val = bigNum / bigDenom;