Fix a pair of implicit conversion warnings

This commit is contained in:
ridiculousfish 2016-11-19 15:45:08 -08:00
parent 2e5693a6bc
commit 0de2a1072f
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ wcstring expand_escape_variable(const wcstring &in) {
tokenize_variable_array(in, lst); tokenize_variable_array(in, lst);
int size = lst.size(); size_t size = lst.size();
if (size == 0) { if (size == 0) {
buff.append(L"''"); buff.append(L"''");
} else if (size == 1) { } else if (size == 1) {

View file

@ -1375,7 +1375,7 @@ static bool handle_completions(const std::vector<completion_t> &comp,
const wcstring tok(begin, end - begin); const wcstring tok(begin, end - begin);
// Check trivial cases. // Check trivial cases.
int size = comp.size(); size_t size = comp.size();
if (size == 0) { if (size == 0) {
// No suitable completions found, flash screen and return. // No suitable completions found, flash screen and return.
reader_flash(); reader_flash();