mirror of https://github.com/kiwix/libkiwix.git
+ remove a compilation warning
This commit is contained in:
parent
c1a31db217
commit
e6f0e38677
|
@ -5,7 +5,7 @@ namespace kiwix {
|
||||||
/* Count word */
|
/* Count word */
|
||||||
unsigned int Indexer::countWords(const string &text) {
|
unsigned int Indexer::countWords(const string &text) {
|
||||||
unsigned int numWords = 1;
|
unsigned int numWords = 1;
|
||||||
for(int i=0; i<text.size();) {
|
for(unsigned int i=0; i<text.size();) {
|
||||||
while(i<text.size() && text[i] != ' ') {
|
while(i<text.size() && text[i] != ' ') {
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue