From 9737482f7c50dccd52ea36aecad7127fbbf942f4 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:36:06 -0700 Subject: [PATCH] Fix an issue breaking compilation in GCC12 and up Users attempting to build the beta branch with GCC 12, 13 or 14 have a failure here due to the std::uint_8 data type. The reason I changed it to an unsigned instead of including is because behavior on versions of GCC 12 and up were not consistent. I changed it to an unsigned because all versions of GCC were happy with that. --- src/RageSoundReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RageSoundReader.cpp b/src/RageSoundReader.cpp index 34744a9d62..b82d0346de 100644 --- a/src/RageSoundReader.cpp +++ b/src/RageSoundReader.cpp @@ -14,7 +14,7 @@ int RageSoundReader::RetriedRead(float* pBuffer, int iFrames, int* iSourceFrame, // pReader may return 0, which means "try again immediately". As a failsafe, // only try this a finite number of times. Use a high number, because in // principle each filter in the stack may cause this. - std::uint8_t retryCount = 50; + unsigned retryCount = 50; while (--retryCount) { if (fRate) { *fRate = this->GetStreamToSourceRatio();