mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
explicit down cast (#46)
Newer clang does not allow down cast with brace initialization. Replace them with C-style cast.
This commit is contained in:
@@ -50,7 +50,7 @@ auto createStorageEventTrace(size_t id) {
|
||||
ClientId::zero(),
|
||||
storage::RequestId{id},
|
||||
storage::UpdateChannel{
|
||||
.id = storage::ChannelId{id},
|
||||
.id = (storage::ChannelId)id,
|
||||
.seqnum = storage::ChannelSeqNum{id},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -375,7 +375,7 @@ bool UnitTestFabric::setUpStorageSystem() {
|
||||
|
||||
if (!setupConfig_.start_storage_server()) {
|
||||
for (auto &[key, value] : storageEndpoints) {
|
||||
nodeEndpoints[storage::NodeId{std::stoul(key)}] = value;
|
||||
nodeEndpoints[(storage::NodeId)std::stoul(key)] = value;
|
||||
}
|
||||
} else {
|
||||
for (uint32_t nodeIndex = 0; nodeIndex < numStorageNodes; nodeIndex++) {
|
||||
|
||||
Reference in New Issue
Block a user