[GB.GSL]
* 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:
parent
1dcb5a3ddc
commit
e0469073ab
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue