1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

nix_api_external: fix missing void* self param

This commit is contained in:
Yorick van Pelt 2023-07-27 13:11:25 +02:00 committed by José Luis Lafuente
parent c3b5b8eb62
commit efcddcdd2f
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
2 changed files with 8 additions and 5 deletions

View file

@ -139,7 +139,7 @@ public:
}
nix_string_context ctx{context};
std::unique_ptr<nix_returned_string> r(
desc.printValueAsJSON((State *)&state, strict, &ctx, copyToStore));
desc.printValueAsJSON(v, (State *)&state, strict, &ctx, copyToStore));
if (!r) {
return nix::ExternalValueBase::printValueAsJSON(state, strict, context,
copyToStore);
@ -160,7 +160,7 @@ public:
state, strict, location, doc, context, drvsSeen, pos);
}
nix_string_context ctx{context};
desc.printValueAsXML((State *)&state, strict, location, &doc, &ctx,
desc.printValueAsXML(v, (State *)&state, strict, location, &doc, &ctx,
&drvsSeen, *reinterpret_cast<const uint32_t *>(&pos));
}