case types::InternalType::ScilabBool :
case types::InternalType::ScilabSparseBool :
{
- isValid = (i == (in.size() > 1 ? 1 : 0));
+ isValid = (i == (in.size() > 1) ? 1 : 0);
}
case types::InternalType::ScilabDouble :
case types::InternalType::ScilabSparse :
{
if (in[0]->getAs<types::Double>()->isEmpty())
{
- out.push_back(types::Double::Empty());
- return types::Function::OK;
+ pRetVal = new types::Sparse(0,0,false);
+ break;
}
if (in[0]->getAs<types::Double>()->isIdentity())