Skip to content

Commit

Permalink
Fix comparison warning (fcitx#420)
Browse files Browse the repository at this point in the history
This fix a comparison warning between int and size_t,
which e99498a causes.
  • Loading branch information
daipom authored and ashie committed Jan 21, 2022
1 parent 6768909 commit 79332d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/spell/spell-enchant.cpp
Expand Up @@ -46,7 +46,7 @@ std::vector<std::string> SpellEnchant::hint(const std::string &language,
std::vector<std::string> result;
number = number > limit ? limit : number;
result.reserve(number);
for (auto i = 0; i < number; i++) {
for (size_t i = 0; i < number; i++) {
result.push_back(suggestions[i]);
}

Expand Down

0 comments on commit 79332d9

Please sign in to comment.