From 3c4ee81fb06838fc12214cb97b1974e46e5812b6 Mon Sep 17 00:00:00 2001 From: maf Date: Thu, 1 Jan 2026 03:55:47 +0800 Subject: [PATCH] fix warning --- AudioFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AudioFile.h b/AudioFile.h index 06988f6..b2525bc 100644 --- a/AudioFile.h +++ b/AudioFile.h @@ -1590,7 +1590,7 @@ inline void AiffUtilities::encodeAiffSampleRate (double sampleRate, uint8_t* byt bytes[0] = (sign == -1) ? 0x80 : 0x00; // Calculate the exponent using logarithm (log base 2) - int exponent = (log (sampleRate) / log (2.0)); + int exponent = static_cast (std::log2 (sampleRate)); // Add bias to exponent for AIFF uint16_t biasedExponent = static_cast (exponent + 16383);