diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 2ebf7c7977..140a5c1eaf 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -2737,7 +2737,7 @@ static QPair getDateTime(const QDateTimeData &d) inline QDateTime::Data::Data(Qt::TimeSpec spec) { if (CanBeSmall && Q_LIKELY(specCanBeSmall(spec))) { - d = reinterpret_cast(int(mergeSpec(QDateTimePrivate::ShortData, spec))); + d = reinterpret_cast(quintptr(mergeSpec(QDateTimePrivate::ShortData, spec))); } else { // the structure is too small, we need to detach d = new QDateTimePrivate;