diff --git a/plugins/xlsxreader.cpp b/plugins/xlsxreader.cpp index e17be096b..014fa117a 100644 --- a/plugins/xlsxreader.cpp +++ b/plugins/xlsxreader.cpp @@ -118,7 +118,7 @@ int get_row(lua_State *L) { // read all cells in the row, even if we don't need to; // otherwise xlsxio will return a spurious empty row on // next call - if (max_tokens <= 0 || cells.size() < max_tokens) { + if (max_tokens <= 0 || int(cells.size()) < max_tokens) { cells.push_back(value); } }