Blob Blame History Raw
diff -rupN --no-dereference qtimageformats-everywhere-src-5.15.7/src/plugins/imageformats/jp2/qjp2handler.cpp qtimageformats-everywhere-src-5.15.7-new/src/plugins/imageformats/jp2/qjp2handler.cpp
--- qtimageformats-everywhere-src-5.15.7/src/plugins/imageformats/jp2/qjp2handler.cpp	2022-09-12 17:29:49.000000000 +0200
+++ qtimageformats-everywhere-src-5.15.7-new/src/plugins/imageformats/jp2/qjp2handler.cpp	2022-11-04 09:29:32.953006998 +0100
@@ -44,6 +44,7 @@
 #include "qvariant.h"
 #include "qcolor.h"
 
+#include <cmath>
 #include <jasper/jasper.h>
 #include <math.h> // for pow
 
@@ -842,7 +843,7 @@ bool Jpeg2000JasperReader::write(const Q
 
     // Set jasperRate to a value in the range minRate..maxRate. Distribute the
     // quality steps more densely at the lower end if the rate scale.
-    const double jasperRate = minRate + pow((double(quality) / double(maxQuality)), 2) * maxRate;
+    const double jasperRate = minRate + std::pow((double(quality) / double(maxQuality)), 2) * maxRate;
 
     // The Jasper format string contains two options:
     // rate: rate=x