File tree 1 file changed +1
-3
lines changed
pandas/_libs/src/vendored/ujson/python
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ typedef struct __NpyArrContext {
74
74
npy_intp ndim ;
75
75
npy_intp index [NPY_MAXDIMS ];
76
76
int type_num ;
77
- PyArray_GetItemFunc * getitem ;
78
77
79
78
char * * rowLabels ;
80
79
char * * columnLabels ;
@@ -405,7 +404,6 @@ static void NpyArr_iterBegin(JSOBJ _obj, JSONTypeContext *tc) {
405
404
}
406
405
407
406
npyarr -> array = (PyObject * )obj ;
408
- npyarr -> getitem = (PyArray_GetItemFunc * )PyArray_DESCR (obj )-> f -> getitem ;
409
407
npyarr -> dataptr = PyArray_DATA (obj );
410
408
npyarr -> ndim = PyArray_NDIM (obj ) - 1 ;
411
409
npyarr -> curdim = 0 ;
@@ -492,7 +490,7 @@ static int NpyArr_iterNextItem(JSOBJ obj, JSONTypeContext *tc) {
492
490
((PyObjectEncoder * )tc -> encoder )-> npyValue = npyarr -> dataptr ;
493
491
((PyObjectEncoder * )tc -> encoder )-> npyCtxtPassthru = npyarr ;
494
492
} else {
495
- GET_TC (tc )-> itemValue = npyarr -> getitem ( npyarr -> dataptr , npyarr -> array );
493
+ GET_TC (tc )-> itemValue = PyArray_GETITEM ( arrayobj , npyarr -> dataptr );
496
494
}
497
495
498
496
npyarr -> dataptr += npyarr -> stride ;
You can’t perform that action at this time.
0 commit comments