mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix a pair of implicit conversion warnings
This commit is contained in:
parent
2e5693a6bc
commit
0de2a1072f
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -1375,7 +1375,7 @@ static bool handle_completions(const std::vector<completion_t> &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();
|
||||
|
|
Loading…
Reference in a new issue