From eb749ac55b64fada379927a77b9f5a612fe72f1c Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Sun, 22 Jun 2025 07:49:37 +0200 Subject: [PATCH] Use ldexpl() instead of ldexp() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will fix "warning: conversion from ‘long double’ to ‘double’ may change value [-Wfloat-conversion]". --- taglib/toolkit/tbytevector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp index 5a32585b..b1641ba3 100644 --- a/taglib/toolkit/tbytevector.cpp +++ b/taglib/toolkit/tbytevector.cpp @@ -237,7 +237,7 @@ long double toFloat80(const ByteVector &v, size_t offset) debug("toFloat80() - can't handle the infinity or NaN. Returning 0."); return 0.0; } - val = ::ldexp(static_cast(fraction), exponent - 16383 - 63); + val = ::ldexpl(static_cast(fraction), exponent - 16383 - 63); } if(negative)