From 3bd5048f8c2f7285743e9922c195c7a08f3f5551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Mon, 12 Sep 2022 18:16:58 +0200 Subject: [PATCH] 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. --- include/sndfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sndfile.h b/include/sndfile.h index 61eba6f4..ed992083 100644 --- a/include/sndfile.h +++ b/include/sndfile.h @@ -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