Skip to content

Commit 2262a36

Browse files
committed
FastDSS: tweak simple complex; make int arrays use C order.
1 parent 921b0cb commit 2262a36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/_fastdss.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static PyObject *AltDSS_PyGRGetter_call(AltDSS_PyGRGetterObject *f, PyObject *ar
527527
if (((settings & FastDSSSettings_AdvancedTypes) == 0))
528528
{
529529
dims[0] = nitems;
530-
if (resType == fastdss_types_gr_z128s)
530+
if (resType == fastdss_types_gr_z128s || resType == fastdss_types_gr_z128)
531531
{
532532
resType = fastdss_types_gr_f64s;
533533
}
@@ -549,7 +549,7 @@ static PyObject *AltDSS_PyGRGetter_call(AltDSS_PyGRGetterObject *f, PyObject *ar
549549
{
550550
nitems /= 2;
551551
}
552-
order = NPY_FORTRANORDER;
552+
order = (resType == fastdss_types_gr_i32s) ? NPY_CORDER : NPY_FORTRANORDER;
553553
}
554554

555555
if (!(settings & FastDSSSettings_UseLists))

0 commit comments

Comments
 (0)