messed up endians

This commit is contained in:
Malavan Sotheeswaran committed 2023-10-04 17:42:32 -07:00
1 parent 756ab91830
commit ae003aa8bc
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ bool RocksDBStorageProvider::enumerate_hashslot(callback fn, unsigned int hashsl
for (it->Seek(prefix); it->Valid(); it->Next()) {
if (FInternalKey(it->key().data(), it->key().size()))
continue;
if ((unsigned int)*it->key().data() != hashslot)
if (*(unsigned int *)it->key().data() != hashslot)
break;
++count;
bool fContinue = fn(it->key().data()+sizeof(unsigned int), it->key().size()-sizeof(unsigned int), it->value().data(), it->value().size());