summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-10-19 20:02:00 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-10-19 20:02:00 (GMT)
commitfea2d924d8513ecf37c7942e04e2396b976a854a (patch)
tree7c0bc962cb1a9002dc9a21006dd8be4f49cd9c7c /src/searchindex.cpp
parent089a5c16df9e08b8f38be4578c2e7cb5799fa9b2 (diff)
downloadDoxygen-fea2d924d8513ecf37c7942e04e2396b976a854a.zip
Doxygen-fea2d924d8513ecf37c7942e04e2396b976a854a.tar.gz
Doxygen-fea2d924d8513ecf37c7942e04e2396b976a854a.tar.bz2
Release-1.3.4-20031019
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r--src/searchindex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index dcb86bc..74834b9 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -69,9 +69,9 @@ void SearchIndex::setCurrentDoc(const char *name,const char *url)
static int charsToIndex(const char *word)
{
if (word==0) return -1;
- int c1=word[0];
+ uint c1=word[0];
if (c1==0) return -1;
- int c2=word[1];
+ uint c2=word[1];
if (c2==0) return -1;
return c1*256+c2;
}
@@ -82,7 +82,7 @@ void SearchIndex::addWord(const char *word)
if (w==0)
{
int idx=charsToIndex(word);
- if (idx==-1) return;
+ if (idx<0) return;
w = new IndexWord(word);
//printf("addWord(%s) at index %d\n",word,idx);
m_index[idx]->append(w);