1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 18:29:36 +01:00

Merge pull request #14603 from NixOS/safe-cast

Turn one unsafe C cast into a safe `static_cast`
This commit is contained in:
John Ericson 2025-11-20 21:26:00 +00:00 committed by GitHub
commit ec3c93f17f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {