diff options
author | João Abecasis <joao@abecasis.name> | 2009-10-26 10:57:37 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-10-26 11:52:01 (GMT) |
commit | bc583eb7bcc11eaa778404bcf73d3f85315fe4ce (patch) | |
tree | 32c5435a8fe07c7d4e2580a82bed52df0e05a6fa /src/corelib | |
parent | 45a09e31ebb25d3ad4f63ae02f0a0b464577761e (diff) | |
download | Qt-bc583eb7bcc11eaa778404bcf73d3f85315fe4ce.zip Qt-bc583eb7bcc11eaa778404bcf73d3f85315fe4ce.tar.gz Qt-bc583eb7bcc11eaa778404bcf73d3f85315fe4ce.tar.bz2 |
Fix silly error in bit fiddling
That's what I get for not having the brain on when accepting
suggestions...
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qfsfileengine_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_unix.cpp b/src/corelib/io/qfsfileengine_unix.cpp index d346685..6af5674 100644 --- a/src/corelib/io/qfsfileengine_unix.cpp +++ b/src/corelib/io/qfsfileengine_unix.cpp @@ -1264,7 +1264,7 @@ uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFla size_t realSize = (size_t)size + extra; QT_OFF_T realOffset = QT_OFF_T(offset); - realOffset &= ~(QT_OFF_T(pageSize)); + realOffset &= ~(QT_OFF_T(pageSize - 1)); #ifdef Q_OS_SYMBIAN void *mapAddress; |