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 <cstdint> 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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user