diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 9648ea6..6982a4c 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -154,9 +154,9 @@ bool Storage::isInternalKey(const QByteArray &key) | |||
154 | 154 | ||
155 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) | 155 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) |
156 | { | 156 | { |
157 | Q_ASSERT(revision <= 9999); | 157 | Q_ASSERT(revision <= 9223372036854775807); |
158 | Q_ASSERT(key.size() == 38); | 158 | Q_ASSERT(key.size() == 38); |
159 | return key + QByteArray::number(revision).rightJustified(4, '0', false); | 159 | return key + QByteArray::number(revision).rightJustified(19, '0', false); |
160 | } | 160 | } |
161 | 161 | ||
162 | QByteArray Storage::uidFromKey(const QByteArray &key) | 162 | QByteArray Storage::uidFromKey(const QByteArray &key) |