Skip to content
Snippets Groups Projects
Commit 557b3807 authored by Julien Michel's avatar Julien Michel
Browse files

COMP: Fixing compilation errors with gcc 4.9

parent 929dea9b
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ void dotpr::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a_
int nbrows = m1.GetRows();
int nbcols = m1.GetCols();
mup::matrix_type res(1,a_iArgc-1,0);
mup::matrix_type res(1,a_iArgc-1,0.);
for (int k=1; k<a_iArgc; ++k)
{
......@@ -360,7 +360,7 @@ void cat::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a_iA
}
// The return value is passed by writing it to the reference ret
mup::matrix_type res(1,vect.size(),0);
mup::matrix_type res(1,vect.size(),0.);
for (unsigned int j=0; j<vect.size(); j++)
res.At(0,j) = vect[j];
*ret = res;
......@@ -410,7 +410,7 @@ void mean::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a_i
}
// The return value is passed by writing it to the reference ret
mup::matrix_type res(1,vect.size(),0);
mup::matrix_type res(1,vect.size(),0.);
for (unsigned int j=0; j<vect.size(); j++)
res.At(0,j) = vect[j];
*ret = res;
......@@ -467,9 +467,9 @@ void var::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a_iA
}
// The return value is passed by writing it to the reference ret
mup::matrix_type res(1,vect.size(),0);
mup::matrix_type res(1,vect.size(),0.);
for (unsigned int j=0; j<vect.size(); j++)
res.At(0,j) = vect[j];
res.At(0,j) = static_cast<mup::float_type>(vect[j]);
*ret = res;
}
......@@ -567,9 +567,9 @@ void median::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a
}
// The return value is passed by writing it to the reference ret
mup::matrix_type res(1,vect.size(),0);
mup::matrix_type res(1,vect.size(),0.);
for (unsigned int j=0; j<vect.size(); j++)
res.At(0,j) = vect[j];
res.At(0,j) = static_cast<mup::float_type>(vect[j]);
*ret = res;
}
......@@ -634,9 +634,9 @@ void maj::Eval(mup::ptr_val_type &ret, const mup::ptr_val_type *a_pArg, int a_iA
}
// The return value is passed by writing it to the reference ret
mup::matrix_type res(1,vect.size(),0);
mup::matrix_type res(1,vect.size(),0.);
for (unsigned int j=0; j<vect.size(); j++)
res.At(0,j) = vect[j];
res.At(0,j) = static_cast<mup::float_type>(vect[j]);
*ret = res;
}
......
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