blob: c57e3745c639aca139c9894c54f46bd36c7b3adc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- ./HashTable/HashTable.cpp.orig 2004-03-01 13:51:28.000000000 -0300
+++ ./HashTable/HashTable.cpp 2008-06-12 15:39:31.000000000 -0300
@@ -265,7 +265,7 @@
void HashTable::countWords( SequenceAdapter& thisSeq )
{
- for ( int j(0) ; j < thisSeq.size() ; ++ j )
+ for ( WordSequence::size_type j(0) ; j < thisSeq.size() ; ++ j )
{
// only count words that have not been flagged
pWordPositionInHitList_[(thisSeq[j]&(~gCursedWord))]
@@ -284,7 +284,7 @@
// NB We stop at the last but one element of the
// sequence (as the last isn't a full word)
- for ( int j(0) ; j < thisSeq.size() ; ++ j )
+ for ( WordSequence::size_type j(0) ; j < thisSeq.size() ; ++ j )
{
thisWord = thisSeq[j];
// only hash words that have not been flagged
|