mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 18:29:36 +01:00
Turn one unsafe C cast into a safe static_cast
This commit is contained in:
parent
5caebab63a
commit
b2ead92791
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ static int main_build_remote(int argc, char ** argv)
|
|||
// output ids, which break CA derivations
|
||||
if (!drv.inputDrvs.map.empty())
|
||||
drv.inputSrcs = store->parseStorePathSet(inputs);
|
||||
optResult = sshStore->buildDerivation(*drvPath, (const BasicDerivation &) drv);
|
||||
optResult = sshStore->buildDerivation(*drvPath, static_cast<const BasicDerivation &>(drv));
|
||||
auto & result = *optResult;
|
||||
if (auto * failureP = result.tryGetFailure()) {
|
||||
if (settings.keepFailed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue