diff options
author | 2012-08-15 00:57:56 -0700 | |
---|---|---|
committer | 2012-08-15 00:57:56 -0700 | |
commit | 61686aff34a9f8c9d4db1045bce987c85d009061 (patch) | |
tree | 3f352033e0bcde6aa7f89487c98b55db72b9499b /builtin_set.cpp | |
parent | ad6645c48da8ae733113ddf07a8675c750c23e1b (diff) |
Adopt posix_spawn (!)
Rewrite IO chains to be a vector of pointers, instead of a linked list
Removed io_transmogrify
Diffstat (limited to 'builtin_set.cpp')
-rw-r--r-- | builtin_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin_set.cpp b/builtin_set.cpp index 35dea7a1..c9b0b4b6 100644 --- a/builtin_set.cpp +++ b/builtin_set.cpp @@ -313,7 +313,7 @@ static void erase_values(wcstring_list_t &list, const std::vector<long> &indexes std::set<long>::const_reverse_iterator iter; for (iter = indexes_set.rbegin(); iter != indexes_set.rend(); iter++) { long val = *iter; - if (val > 0 && val <= list.size()) { + if (val > 0 && (size_t)val <= list.size()) { // One-based indexing! list.erase(list.begin() + val - 1); } |