diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2013-09-04 14:21:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 00:50:12 +0200 |
commit | 78f3f35a8b94e067a647a809003ecc60a3b8ad91 (patch) | |
tree | f39c49c325c90fd7b63bc736b40dd8e71262a11d /src | |
parent | b4567a7bf203896ba2d4deb8b6336ed4e7e42710 (diff) |
qdatetime: fix build on iOS
Change-Id: I7c6225c54a863f29aa747caf2f57303b2bf6c398
Reviewed-by: John Layt <jlayt@kde.org>
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qdatetime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index db0f7d3a74..0660da0894 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -255,7 +255,7 @@ static time_t qt_mktime(QDate *date, QTime *time, QDateTimePrivate::Spec *spec, tzset(); #endif // Q_OS_WIN const time_t secsSinceEpoch = mktime(&local); - if (secsSinceEpoch != (uint)-1) { + if (secsSinceEpoch != time_t(-1)) { *date = QDate(local.tm_year + 1900, local.tm_mon + 1, local.tm_mday); *time = QTime(local.tm_hour, local.tm_min, local.tm_sec, time->msec()); if (local.tm_isdst == 1) { |