Skip to content

Commit

Permalink
Fix order of AVIF_NODISCARD and AVIF_API. (#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryla-uc authored Oct 1, 2024
1 parent ddb5969 commit 84b8865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/avif/avif.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ typedef struct avifUnsignedFraction

// Creates an int32/uint32 fraction that is approximately equal to 'v'.
// Returns AVIF_FALSE if 'v' is NaN or abs(v) is > INT32_MAX.
AVIF_API AVIF_NODISCARD avifBool avifDoubleToSignedFraction(double v, avifSignedFraction * fraction);
AVIF_NODISCARD AVIF_API avifBool avifDoubleToSignedFraction(double v, avifSignedFraction * fraction);
// Creates a uint32/uint32 fraction that is approximately equal to 'v'.
// Returns AVIF_FALSE if 'v' is < 0 or > UINT32_MAX or NaN.
AVIF_API AVIF_NODISCARD avifBool avifDoubleToUnsignedFraction(double v, avifUnsignedFraction * fraction);
AVIF_NODISCARD AVIF_API avifBool avifDoubleToUnsignedFraction(double v, avifUnsignedFraction * fraction);

// ---------------------------------------------------------------------------
// Optional transformation structs
Expand Down

0 comments on commit 84b8865

Please sign in to comment.