Skip to content

Commit eb749ac

Browse files
committed
Use ldexpl() instead of ldexp()
This will fix "warning: conversion from ‘long double’ to ‘double’ may change value [-Wfloat-conversion]".
1 parent 148cc9a commit eb749ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

taglib/toolkit/tbytevector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ long double toFloat80(const ByteVector &v, size_t offset)
237237
debug("toFloat80() - can't handle the infinity or NaN. Returning 0.");
238238
return 0.0;
239239
}
240-
val = ::ldexp(static_cast<long double>(fraction), exponent - 16383 - 63);
240+
val = ::ldexpl(static_cast<long double>(fraction), exponent - 16383 - 63);
241241
}
242242

243243
if(negative)

0 commit comments

Comments
 (0)