Skip to content

Commit

Permalink
On some architectures, time_t is not equal to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Nov 13, 2018
1 parent 7cce9b3 commit b465345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Expand Up @@ -1877,7 +1877,7 @@ bool QgsProject::writeProjectFile( const QString &filename )
}

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

Expand Down

0 comments on commit b465345

Please sign in to comment.