changeset 32010:d790c977abb5

octave-svgconvert: Static cast to float. * src/octave-qsvghandler.h (toDouble): Static cast qreal to float.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 13 Apr 2023 20:04:56 +0200
parents a96980ad4b57
children ce36dddf5427
files src/octave-qsvghandler.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/octave-qsvghandler.h	Thu Apr 13 19:47:59 2023 +0200
+++ b/src/octave-qsvghandler.h	Thu Apr 13 20:04:56 2023 +0200
@@ -130,7 +130,7 @@
     } else {
         val = QByteArray::fromRawData(temp, pos).toDouble();
         // Do not tolerate values too wild to be represented normally by floats
-        if (std::fpclassify (float {val}) != FP_NORMAL)
+        if (std::fpclassify (static_cast<float> (val)) != FP_NORMAL)
             val = 0;
     }
     return val;