Skip to content

Commit

Permalink
Merge pull request #8476 from lbartoletti/cast_time_project
Browse files Browse the repository at this point in the history
On some architectures, time_t is not equal to int64
  • Loading branch information
m-kuhn committed Nov 14, 2018
2 parents 08544fb + 1d379ae commit 6106628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Expand Up @@ -1888,7 +1888,7 @@ bool QgsProject::writeProjectFile( const QString &filename )
} }


QFileInfo fi( fileName() ); QFileInfo fi( fileName() );
struct utimbuf tb = { fi.lastRead().toTime_t(), fi.lastModified().toTime_t() }; struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toSecsSinceEpoch() ), static_cast<time_t>( fi.lastModified().toSecsSinceEpoch() ) };
utime( backupFile.fileName().toUtf8().constData(), &tb ); utime( backupFile.fileName().toUtf8().constData(), &tb );
} }


Expand Down

0 comments on commit 6106628

Please sign in to comment.