test_run ast bug_16263
tic();d(1:50000)=%s;toc()
r = [0 %i 1/%s] +1 // doesn't crash scilab
Change-Id: Ie5e6f572274a12256d92618936dbf9954536946c
return pIT;
}
+ bool bComplex = isComplex();
+
if (m_pRealData[_iPos])
{
delete m_pRealData[_iPos];
m_pRealData[_iPos] = copyValue(_pS);
- bool bComplex = isComplex();
if (_pS->isComplex() && bComplex == false)
{
setComplex(true);
bool Polynom::isComplex()
{
- for (int i = 0 ; i < getSize() ; i++)
- {
- if (m_pRealData[i] && m_pRealData[i]->isComplex())
- {
- return true;
- }
- }
- return false;
+ if (m_iSize && m_pRealData[0])
+ {
+ return m_pRealData[0]->isComplex();
+ }
+
+ return false;
}
Polynom* Polynom::setComplex(bool _bComplex)