We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2883c5 commit 56a77f3Copy full SHA for 56a77f3
pandas/src/ujson/python/JSONtoObj.c
@@ -156,7 +156,7 @@ JSOBJ Object_npyEndArray(JSOBJ obj)
156
Npy_releaseContext(npyarr);
157
return NULL;
158
}
159
- ((char*)PyArray_DATA(ret)) = new_data;
+ PyArray_BYTES(ret) = new_data;
160
161
162
if (npyarr->dec->curdim <= 0)
@@ -289,7 +289,7 @@ int Object_npyArrayAddItem(JSOBJ obj, JSOBJ value)
289
PyErr_NoMemory();
290
goto fail;
291
292
- ((char*)PyArray_DATA(npyarr->ret)) = new_data;
+ PyArray_BYTES(npyarr->ret) = new_data;
293
294
295
PyArray_DIMS(npyarr->ret)[0] = i + 1;
0 commit comments