diff options
Diffstat (limited to 'src/libstore/machines.cc')
-rw-r--r-- | src/libstore/machines.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/machines.cc b/src/libstore/machines.cc index c1d9047537d3..7491037b2d79 100644 --- a/src/libstore/machines.cc +++ b/src/libstore/machines.cc @@ -55,7 +55,7 @@ void parseMachines(const std::string & s, Machines & machines) if (sz < 1) throw FormatError("bad machine specification ‘%s’", line); - auto isSet = [&](int n) { + auto isSet = [&](size_t n) { return tokens.size() > n && tokens[n] != "" && tokens[n] != "-"; }; |