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>
This commit is contained in:
Richard Moe Gustavsen 2013-09-04 14:21:20 +02:00 committed by The Qt Project
parent b4567a7bf2
commit 78f3f35a8b

View File

@ -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) {