projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ca03ed
)
Change one int to qint64 in QDateTime::setMSecsSinceEpoch(qint64)
author
Jon Severinsson
<jon@severinsson.net>
Thu, 25 Oct 2012 23:49:28 +0000
(
01:49
+0200)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Fri, 26 Oct 2012 18:49:01 +0000
(20:49 +0200)
This one was missed when the QDate range was extended.
Change-Id: I0dbcc9fdebca88f7397203d8e539429dcff9ac30
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp
patch
|
blob
|
history
diff --git
a/src/corelib/tools/qdatetime.cpp
b/src/corelib/tools/qdatetime.cpp
index
7d18e93
..
67dbbef
100644
(file)
--- a/
src/corelib/tools/qdatetime.cpp
+++ b/
src/corelib/tools/qdatetime.cpp
@@
-2418,7
+2418,7
@@
void QDateTime::setMSecsSinceEpoch(qint64 msecs)
QDateTimePrivate::Spec oldSpec = d->spec;
-
int
ddays = msecs / MSECS_PER_DAY;
+
qint64
ddays = msecs / MSECS_PER_DAY;
msecs %= MSECS_PER_DAY;
if (msecs < 0) {
// negative