Skip to content

Commit 5f34ee5

Browse files
author
Rohan Budhiraja
committed
[eigen] fix task error signal
1 parent e4647ef commit 5f34ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/task/task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ computeError( dynamicgraph::Vector& error,int time )
214214

215215
const int dim = partialError.size();
216216
while( cursorError+dim>dimError ) // DEBUG It was >=
217-
{ dimError *= 2; error.resize(dimError,false); }
217+
{ dimError *= 2; error.resize(dimError); }
218218

219219
for( int k=0;k<dim;++k ){ error(cursorError++) = partialError(k); }
220220
sotDEBUG(35) << "feature: "<< partialError << std::endl;
221221
sotDEBUG(35) << "error: "<< error << std::endl;
222222
}
223223

224224
/* If too much memory has been allocated, resize. */
225-
error .resize(cursorError,false);
225+
error .resize(cursorError);
226226
} catch SOT_RETHROW;
227227

228228
sotDEBUG(35) << "error_final: "<< error << std::endl;

0 commit comments

Comments
 (0)