--- parser3/src/main/Attic/pa_array.C 2002/08/06 14:23:23 1.51 +++ parser3/src/main/Attic/pa_array.C 2002/12/05 11:23:53 1.53 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_ARRAY_C="$Date: 2002/08/06 14:23:23 $"; +static const char* IDENT_ARRAY_C="$Date: 2002/12/05 11:23:53 $"; #include "pa_pool.h" #include "pa_array.h" @@ -90,7 +90,7 @@ Array& Array::append_array(const Array& // fix limit { int m=src.fused_rows-offset; - if(!m) + if(!m || limit<0) return *this; if(!limit || limit>m) limit=m; @@ -126,6 +126,7 @@ Array& Array::append_array(const Array& if(rows_to_copy_now>0) { memcpy(dest_rows, src_chunk->rows+offset, sizeof(Chunk::Row)*rows_to_copy_now); + offset=0; if(!(limit-=rows_to_copy_now)) break; } else