qt5_qarraydata.patch From: Christian Prochaska --- qtbase/src/corelib/tools/qarraydata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qtbase/src/corelib/tools/qarraydata.cpp b/qtbase/src/corelib/tools/qarraydata.cpp index eb6ce21..ba93eec 100644 --- a/qtbase/src/corelib/tools/qarraydata.cpp +++ b/qtbase/src/corelib/tools/qarraydata.cpp @@ -107,8 +107,8 @@ QArrayData *QArrayData::allocate(size_t objectSize, size_t alignment, QArrayData *header = static_cast(::malloc(allocSize)); if (header) { - quintptr data = (quintptr(header) + sizeof(QArrayData) + alignment - 1) - & ~(alignment - 1); + quintptr data = (quintptr(header) + sizeof(QArrayData) + /*alignment*/4 - 1) + & ~(/*alignment*/4 - 1); #if !defined(QT_NO_UNSHARABLE_CONTAINERS) header->ref.atomic.store(bool(!(options & Unsharable)));