Skip to content

Commit ec3c93f

Browse files
authored
Merge pull request #14603 from NixOS/safe-cast
Turn one unsafe C cast into a safe `static_cast`
2 parents 50407ab + b2ead92 commit ec3c93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nix/build-remote/build-remote.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static int main_build_remote(int argc, char ** argv)
322322
// output ids, which break CA derivations
323323
if (!drv.inputDrvs.map.empty())
324324
drv.inputSrcs = store->parseStorePathSet(inputs);
325-
optResult = sshStore->buildDerivation(*drvPath, (const BasicDerivation &) drv);
325+
optResult = sshStore->buildDerivation(*drvPath, static_cast<const BasicDerivation &>(drv));
326326
auto & result = *optResult;
327327
if (auto * failureP = result.tryGetFailure()) {
328328
if (settings.keepFailed) {

0 commit comments

Comments
 (0)