Skip to content
Snippets Groups Projects
Commit b73c8f6b authored by Jesper Andersson's avatar Jesper Andersson
Browse files

Fixed bug in a call to memset

parent 49faa182
No related branches found
No related tags found
No related merge requests found
......@@ -644,7 +644,7 @@ double Splinterpolator<T>::value_and_derivatives_at(const double *coord,
double *dval)
const
{
if (should_be_zero(coord)) { memset(dval,n_nonzero(deriv)*sizeof(double),0); return(0.0); }
if (should_be_zero(coord)) { memset(dval,0,n_nonzero(deriv)*sizeof(double)); return(0.0); }
double iwgt[8], jwgt[8], kwgt[8], lwgt[8], mwgt[8];
double *wgts[] = {iwgt, jwgt, kwgt, lwgt, mwgt};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment