diff options
Diffstat (limited to 'third_party/nix/src/libexpr/value-to-json.cc')
-rw-r--r-- | third_party/nix/src/libexpr/value-to-json.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/third_party/nix/src/libexpr/value-to-json.cc b/third_party/nix/src/libexpr/value-to-json.cc index a51a1cee3043..3e5e025a27be 100644 --- a/third_party/nix/src/libexpr/value-to-json.cc +++ b/third_party/nix/src/libexpr/value-to-json.cc @@ -64,14 +64,11 @@ void printValueAsJSON(EvalState& state, bool strict, Value& v, break; } - case tList1: - case tList2: - case tListN: { + case tList: { auto list(out.list()); for (unsigned int n = 0; n < v.listSize(); ++n) { auto placeholder(list.placeholder()); - printValueAsJSON(state, strict, *v.listElems()[n], placeholder, - context); + printValueAsJSON(state, strict, *(*v.list)[n], placeholder, context); } break; } |