Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix Qt5 build

Freya Lupendbaed5662d0c
diff --git a/plugins/impex/psd/tests/kis_psd_test.cpp b/plugins/impex/psd/tests/kis_psd_test.cpp
index 918c0a9d97..96dc831ab7 100644
--- a/plugins/impex/psd/tests/kis_psd_test.cpp
+++ b/plugins/impex/psd/tests/kis_psd_test.cpp
@@ -529,7 +529,7 @@ void KisPSDTest::testRoundTripSaiCompositeOps()
// modes are saved by meddling with the opacity value, so we check that it
// round-trips here too.
auto randomOpacity = [] {
- return QRandomGenerator::global()->bounded(OPACITY_TRANSPARENT_U8, OPACITY_OPAQUE_U8);
+ return quint8(QRandomGenerator::global()->bounded(OPACITY_TRANSPARENT_U8, OPACITY_OPAQUE_U8));
};
QList<QPair<QString, quint8>> expectedPairs = {
{COMPOSITE_BURN, randomOpacity()},