Commit bc541951 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

decreased size of the buffer used in CvBoost::update_weights (ticket #1803)

parent 517fc5e2
......@@ -1132,7 +1132,7 @@ CvBoost::update_weights( CvBoostTree* tree )
else
{
if( have_subsample )
_buf_size += data->buf->step*(sizeof(float)+sizeof(uchar));
_buf_size += data->buf->cols*(sizeof(float)+sizeof(uchar));
}
inn_buf.allocate(_buf_size);
uchar* cur_buf_pos = (uchar*)inn_buf;
......
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