summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengine_qws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qfontengine_qws.cpp')
-rw-r--r--src/gui/text/qfontengine_qws.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_qws.cpp b/src/gui/text/qfontengine_qws.cpp
index 5ce4048f7c..1215b1fce4 100644
--- a/src/gui/text/qfontengine_qws.cpp
+++ b/src/gui/text/qfontengine_qws.cpp
@@ -331,7 +331,7 @@ QFontEngineQPF1::QFontEngineQPF1(const QFontDef&, const QString &fn)
d->used_mmap = false;
#endif
d->mmapStart = new uchar[d->mmapLength];
- if (QT_READ(fd, d->mmapStart, d->mmapLength) != d->mmapLength)
+ if (QT_READ(fd, d->mmapStart, d->mmapLength) != (qint64)d->mmapLength)
qFatal("Failed to read '%s'", QFile::encodeName(fn).constData());
}
QT_CLOSE(fd);