From 0de2a1072f06cf3c83850cc6a073a4ca1b752941 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 19 Nov 2016 15:45:08 -0800 Subject: [PATCH] Fix a pair of implicit conversion warnings --- src/expand.cpp | 2 +- src/reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();