fix: fix wrong type of key.

This commit is contained in:
2025-03-07 11:40:32 +08:00
parent ccac9623d9
commit c9be8e128f

View File

@@ -44,7 +44,7 @@ int main(int argc, char* argv[]) try {
nlohmann::json data;
blob.for_each([&data](hash_t hash, const MagicEntry& entry) {
data[hash] = entry;
data[std::format("{:#x}", hash)] = entry;
});
std::ofstream ofs(args.m_output_path);