--- parser3/src/main/untaint.C 2001/03/29 08:34:48 1.26 +++ parser3/src/main/untaint.C 2001/03/29 16:12:46 1.28 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: untaint.C,v 1.26 2001/03/29 08:34:48 paf Exp $ + $Id: untaint.C,v 1.28 2001/03/29 16:12:46 paf Exp $ */ #include "pa_config_includes.h" @@ -65,7 +65,7 @@ static bool typo_present(Array::Item *va const char *src=static_cast(info); int partial; - row->get_string(0)->cmp(src, partial); + row->get_string(0)->cmp(partial, src); return partial==0 || // full match partial==1; // typo left column starts 'src' @@ -80,7 +80,7 @@ char *String::store_to(char *dest) const const Chunk *chunk=&head; do { const Chunk::Row *row=chunk->rows; - for(int i=0; icount; i++) { + for(size_t i=0; icount; i++, row++) { if(row==append_here) goto break2; @@ -230,7 +230,6 @@ char *String::store_to(char *dest) const static_cast(row->item.lang), i); } - row++; } chunk=row->link; } while(chunk);