Commit a50e903d authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

few fixes

parent 10d1e034
......@@ -991,12 +991,13 @@ namespace INMOST
#endif
assert(parray_new != NULL);
parray_new = parray_new - beg_index;
IndType mend = std::min(end,end_index);
if( parray )
{
std::copy(parray+beg_index,parray+std::min(end,end_index),parray_new+beg_index);
std::copy(parray+beg_index,parray+mend,parray_new+beg_index);
delete [] (parray+beg_index);
}
std::fill(parray_new+std::min(end,end_index),parray_new+end,c);
if( mend < end ) std::fill(parray_new+mend,parray_new+end,c);
parray = parray_new;
}
else
......
......@@ -953,6 +953,7 @@ namespace INMOST
/// @param ncols New number of columns.
void Resize(enumerator nrows, enumerator ncols)
{
(void)ncols;
assert(nrows == ncols);
if( space.size() != (nrows+1)*nrows/2 )
space.resize((nrows+1)*nrows/2);
......
......@@ -92,7 +92,7 @@ int main(int argc,char ** argv)
err = tmp;
#endif
if (rank==0)
//if (rank==0)
{
std::cout << "done, error " << err << "\t\t\t" << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment