diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2016-10-28 13:43:14 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2016-10-28 13:43:14 +0000 |
commit | ea7ceba707457f4713e302755dddec60ea73d011 (patch) | |
tree | 7cfcdd85e2e9fd3db96642ae81d9f1a7b8b8cb04 /x11-toolkits/qt5-gui/files | |
parent | 102a98361437cd6ce8055d80c514878000e25685 (diff) | |
download | ports-ea7ceba707457f4713e302755dddec60ea73d011.tar.gz ports-ea7ceba707457f4713e302755dddec60ea73d011.zip |
Notes
Diffstat (limited to 'x11-toolkits/qt5-gui/files')
-rw-r--r-- | x11-toolkits/qt5-gui/files/extrapatch-src_gui_painting_qcolor.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-toolkits/qt5-gui/files/extrapatch-src_gui_painting_qcolor.cpp b/x11-toolkits/qt5-gui/files/extrapatch-src_gui_painting_qcolor.cpp new file mode 100644 index 000000000000..7760f66a4034 --- /dev/null +++ b/x11-toolkits/qt5-gui/files/extrapatch-src_gui_painting_qcolor.cpp @@ -0,0 +1,20 @@ +On FreeBSD 9.3 with gcc-4.2 we need to mark the constant as an unsigned long long. +Else the compiler will choke on it being too large: + +c++ -c -O2 -pipe [...] itemmodels/qstandarditemmodel.cpp +painting/qcolor.cpp:527: error: integer constant is too large for 'long' type +*** [.obj/qcolor.o] Error code 1 +1 error + + +--- src/gui/painting/qcolor.cpp.orig 2016-10-10 16:17:59 UTC ++++ src/gui/painting/qcolor.cpp +@@ -524,7 +524,7 @@ QString QColor::name(NameFormat format) + return QLatin1Char('#') + QString::number(rgba() | 0x1000000, 16).rightRef(6); + case HexArgb: + // it's called rgba() but it does return AARRGGBB +- return QLatin1Char('#') + QString::number(rgba() | 0x100000000, 16).rightRef(8); ++ return QLatin1Char('#') + QString::number(rgba() | 0x100000000ULL, 16).rightRef(8); + } + return QString(); + } |