Skip to content

Commit b2ead92

Browse files
committed
Turn one unsafe C cast into a safe static_cast
1 parent 5caebab commit b2ead92

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)