* BUG: Polynomial: Create a new void polymonial does lead to a crash 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@6055 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-01-02 21:18:08 +00:00
parent 1dcb5a3ddc
commit e0469073ab

View file

@ -598,8 +598,7 @@ BEGIN_METHOD(Polynomial_new, GB_INTEGER size; GB_BOOLEAN complex)
bool complex = VARGOPT(complex, FALSE);
int size = VARGOPT(size, 0);
if (size > 0)
GB.NewArray(POINTER(&THIS->data), complex ? sizeof(gsl_complex) : sizeof(double), size);
GB.NewArray(POINTER(&THIS->data), complex ? sizeof(gsl_complex) : sizeof(double), size);
THIS->size = size;
THIS->complex = complex;