diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-01-19 11:09:27 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2021-08-23 10:40:26 +0300 |
commit | 324d5a04c60426c95a3d4c7482f469e4c9194508 (patch) | |
tree | 21d56693a20d7219ab09c165b35ef1351b48f1ae /src/common | |
parent | de2d11125b6a7b31b9f80fdf0881603b928db4de (diff) |
Align type used for getPHash
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/syncjournaldb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp index 1984447ac..11dc84458 100644 --- a/src/common/syncjournaldb.cpp +++ b/src/common/syncjournaldb.cpp @@ -892,7 +892,7 @@ QVector<QByteArray> SyncJournalDb::tableColumns(const QByteArray &table) qint64 SyncJournalDb::getPHash(const QByteArray &file) { - int64_t h = 0; + qint64 h = 0; int len = file.length(); h = c_jhash64((uint8_t *)file.data(), len, 0); @@ -922,7 +922,7 @@ Result<void, QString> SyncJournalDb::setFileRecord(const SyncJournalFileRecord & << "fileSize:" << record._fileSize << "checksum:" << record._checksumHeader << "e2eMangledName:" << record.e2eMangledName() << "isE2eEncrypted:" << record._isE2eEncrypted; - qlonglong phash = getPHash(record._path); + const qint64 phash = getPHash(record._path); if (checkConnect()) { int plen = record._path.length(); @@ -1068,7 +1068,7 @@ bool SyncJournalDb::deleteFileRecord(const QString &filename, bool recursively) return false; } - qlonglong phash = getPHash(filename.toUtf8()); + const qint64 phash = getPHash(filename.toUtf8()); query->bindValue(1, phash); if (!query->exec()) { @@ -1372,7 +1372,7 @@ bool SyncJournalDb::updateFileRecordChecksum(const QString &filename, qCInfo(lcDb) << "Updating file checksum" << filename << contentChecksum << contentChecksumType; - qlonglong phash = getPHash(filename.toUtf8()); + const qint64 phash = getPHash(filename.toUtf8()); if (!checkConnect()) { qCWarning(lcDb) << "Failed to connect database."; return false; @@ -1401,7 +1401,7 @@ bool SyncJournalDb::updateLocalMetadata(const QString &filename, qCInfo(lcDb) << "Updating local metadata for:" << filename << modtime << size << inode; - qlonglong phash = getPHash(filename.toUtf8()); + const qint64 phash = getPHash(filename.toUtf8()); if (!checkConnect()) { qCWarning(lcDb) << "Failed to connect database."; return false; |