Windows Font Engine: Fix MinGW developer build
Suppress warning: qwindowsfontengine.cpp:590:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] Amends change ac1e87d9f373ad649d989f254b37d2f29ddf25fe. Change-Id: Ibd25c522aac8e946c5e0759ea20e023883622914 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
057793a841
commit
95c767f5be
@ -587,7 +587,7 @@ namespace {
|
||||
QFixed QWindowsFontEngine::capHeight() const
|
||||
{
|
||||
const QByteArray tableData = getSfntTable(MAKE_TAG('O', 'S', '/', '2'));
|
||||
if (tableData.size() >= sizeof(OS2Table)) {
|
||||
if (size_t(tableData.size()) >= sizeof(OS2Table)) {
|
||||
const OS2Table *table = reinterpret_cast<const OS2Table *>(tableData.constData());
|
||||
if (qFromBigEndian<quint16>(table->version) >= 2) {
|
||||
qint16 capHeight = qFromBigEndian<qint16>(table->capHeight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user