summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-10-19 20:02:00 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-10-19 20:02:00 (GMT)
commite6a16d09de26a40fd7730ba44a740b713b157191 (patch)
tree7c0bc962cb1a9002dc9a21006dd8be4f49cd9c7c /src/searchindex.cpp
parenta139a43323607b05f0f749d3c7d8734bb7a47768 (diff)
downloadDoxygen-e6a16d09de26a40fd7730ba44a740b713b157191.zip
Doxygen-e6a16d09de26a40fd7730ba44a740b713b157191.tar.gz
Doxygen-e6a16d09de26a40fd7730ba44a740b713b157191.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);