Define SF_COUNT_MAX as INT64_MAX.

INT64_MAX instead of 0x7FFFFFFFFFFFFFFFLL avoids type discrepancy between int64_t and LL (long long) suffix when int64_t is not long long.
This commit is contained in:
Jörn Heusipp 2022-09-12 18:16:58 +02:00 committed by David Seifert
parent bd951f9a47
commit 3bd5048f8c

View File

@ -367,7 +367,7 @@ typedef struct sf_private_tag SNDFILE ;
typedef int64_t sf_count_t ;
#ifndef SF_COUNT_MAX
#define SF_COUNT_MAX 0x7FFFFFFFFFFFFFFFLL
#define SF_COUNT_MAX INT64_MAX
#endif