summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-11-06 18:48:03 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-11-06 18:51:12 (GMT)
commit2b91557c93354b766c78cbc4ab48bcd58207bf1a (patch)
tree103ae1769e4f8a6e1dabc3c0761f6f0ef069acd1
parent28f490b3edb7a47aa27db5ea427d91e082a59f18 (diff)
downloadQt-2b91557c93354b766c78cbc4ab48bcd58207bf1a.zip
Qt-2b91557c93354b766c78cbc4ab48bcd58207bf1a.tar.gz
Qt-2b91557c93354b766c78cbc4ab48bcd58207bf1a.tar.bz2
Fix a signed/unsigned comparison warning
-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 7824520..05e6fab 100644
--- a/src/corelib/io/qfsfileengine_unix.cpp
+++ b/src/corelib/io/qfsfileengine_unix.cpp
@@ -1245,7 +1245,7 @@ uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFla
}
if (offset < 0 || offset != qint64(QT_OFF_T(offset))
- || size < 0 || size > (size_t)-1) {
+ || size < 0 || size > qint64(size_t(-1))) {
q->setError(QFile::UnspecifiedError, qt_error_string(int(EINVAL)));
return 0;
}