Skip to content
Permalink
Browse files

On some architectures, time_t is not equal to int64

  • Loading branch information
lbartoletti committed Nov 13, 2018
1 parent 7cce9b3 commit b465345d8090b989e6259246cb61778dbfe2c559
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsproject.cpp
@@ -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 );
}

0 comments on commit b465345

Please sign in to comment.
You can’t perform that action at this time.