tif_dirwrite.c: qualify ToRationalEuclideanGCD() with static

This commit is contained in:
Even Rouault 2020-02-27 21:30:28 +01:00
parent 27a1338723
commit 8c4b470889
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -2704,6 +2704,7 @@ void DoubleToSrational_direct(double value, long *num, long *denom)
* Calculates the rational fractional of a double input value * Calculates the rational fractional of a double input value
* using the Euclidean algorithm to find the greatest common divisor (GCD) * using the Euclidean algorithm to find the greatest common divisor (GCD)
------------------------------------------------------------------------*/ ------------------------------------------------------------------------*/
static
void ToRationalEuclideanGCD(double value, int blnUseSignedRange, int blnUseSmallRange, unsigned long long *ullNum, unsigned long long *ullDenom) void ToRationalEuclideanGCD(double value, int blnUseSignedRange, int blnUseSmallRange, unsigned long long *ullNum, unsigned long long *ullDenom)
{ {
/* Internally, the integer variables can be bigger than the external ones, /* Internally, the integer variables can be bigger than the external ones,