summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao@trolltech.com>2010-02-24 17:50:37 (GMT)
committerJoão Abecasis <joao@trolltech.com>2010-02-25 17:17:43 (GMT)
commit04622a816d908ca8589803c6eeb24b526e9c62ec (patch)
tree4c9e6c13f52c1fbf4d8a15f9786cbd36b4213342 /src
parent745889c54b5c1e1df667ced9ba879607dfea6156 (diff)
downloadQt-04622a816d908ca8589803c6eeb24b526e9c62ec.zip
Qt-04622a816d908ca8589803c6eeb24b526e9c62ec.tar.gz
Qt-04622a816d908ca8589803c6eeb24b526e9c62ec.tar.bz2
Fix a signed/unsigned comparison compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfsfileengine_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_unix.cpp b/src/corelib/io/qfsfileengine_unix.cpp
index 9179485..d2fa744 100644
--- a/src/corelib/io/qfsfileengine_unix.cpp
+++ b/src/corelib/io/qfsfileengine_unix.cpp
@@ -1270,7 +1270,7 @@ uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFla
int pageSize = getpagesize();
int extra = offset % pageSize;
- if (size + extra > (size_t)-1) {
+ if (quint64(size + extra) > quint64((size_t)-1)) {
q->setError(QFile::UnspecifiedError, qt_error_string(int(EINVAL)));
return 0;
}