summaryrefslogtreecommitdiffstats
path: root/src/qt3support
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt3support')
-rw-r--r--src/qt3support/other/q3dragobject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt3support/other/q3dragobject.cpp b/src/qt3support/other/q3dragobject.cpp
index e089af1621..addfa6f637 100644
--- a/src/qt3support/other/q3dragobject.cpp
+++ b/src/qt3support/other/q3dragobject.cpp
@@ -1505,7 +1505,9 @@ void Q3ColorDrag::setColor(const QColor &col)
b = htons(b);
ushort rgba[4] = {
- r, g, b,
+ static_cast<ushort>(r),
+ static_cast<ushort>(g),
+ static_cast<ushort>(b),
0xffff // Alpha not supported yet.
};
QByteArray data;