diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_inspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index 956431a..1ab68f5 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp | |||
@@ -108,7 +108,7 @@ bool inspect(const QStringList &args, State &state) | |||
108 | 108 | ||
109 | QSet<QByteArray> uids; | 109 | QSet<QByteArray> uids; |
110 | db.scan("", [&] (const QByteArray &key, const QByteArray &data) { | 110 | db.scan("", [&] (const QByteArray &key, const QByteArray &data) { |
111 | size_t revision = *reinterpret_cast<const char*>(key.constData()); | 111 | size_t revision = Sink::byteArrayToSizeT(key); |
112 | uids.insert(Sink::Storage::DataStore::getUidFromRevision(transaction, revision)); | 112 | uids.insert(Sink::Storage::DataStore::getUidFromRevision(transaction, revision)); |
113 | return true; | 113 | return true; |
114 | }, | 114 | }, |