diff --git a/src/expand.cpp b/src/expand.cpp index 4bb30bdd4..664e2d4e5 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -166,7 +166,7 @@ wcstring expand_escape_variable(const wcstring &in) { tokenize_variable_array(in, lst); - int size = lst.size(); + size_t size = lst.size(); if (size == 0) { buff.append(L"''"); } else if (size == 1) { diff --git a/src/reader.cpp b/src/reader.cpp index f3886668a..0ba539ce3 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1375,7 +1375,7 @@ static bool handle_completions(const std::vector &comp, const wcstring tok(begin, end - begin); // Check trivial cases. - int size = comp.size(); + size_t size = comp.size(); if (size == 0) { // No suitable completions found, flash screen and return. reader_flash();