summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r--common/storage/entitystore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp
index 0640f1c..daabf1f 100644
--- a/common/storage/entitystore.cpp
+++ b/common/storage/entitystore.cpp
@@ -451,7 +451,7 @@ QVector<Identifier> EntityStore::fullScan(const QByteArray &type)
451 return true; 451 return true;
452 } 452 }
453 453
454 size_t revision = *reinterpret_cast<const size_t*>(key.constData()); 454 size_t revision = byteArrayToSizeT(key);
455 455
456 const auto metadata = flatbuffers::GetRoot<Metadata>(buffer.metadataBuffer()); 456 const auto metadata = flatbuffers::GetRoot<Metadata>(buffer.metadataBuffer());
457 const QByteArray uid = DataStore::getUidFromRevision(d->getTransaction(), revision); 457 const QByteArray uid = DataStore::getUidFromRevision(d->getTransaction(), revision);