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:
@@ -124,7 +124,7 @@ bool runBenchmarks() {
|
||||
auto nodeIdStr = nodeEndpointStrs[0];
|
||||
auto endpointStr = nodeEndpointStrs[1];
|
||||
|
||||
NodeId nodeId{std::stoul(nodeIdStr)};
|
||||
auto nodeId = (NodeId)std::stoul(nodeIdStr);
|
||||
auto endpoint = net::Address::fromString(endpointStr);
|
||||
storageEndpoints[nodeId] = endpoint;
|
||||
XLOGF(WARN, "Add storage endpoint: {} @ {}", nodeId, endpoint);
|
||||
|
||||
Reference in New Issue
Block a user