Skip to content

Commit 56a77f3

Browse files
thuskewesm
authored andcommitted
ujson fix compile error using clang
1 parent f2883c5 commit 56a77f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/ujson/python/JSONtoObj.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ JSOBJ Object_npyEndArray(JSOBJ obj)
156156
Npy_releaseContext(npyarr);
157157
return NULL;
158158
}
159-
((char*)PyArray_DATA(ret)) = new_data;
159+
PyArray_BYTES(ret) = new_data;
160160
}
161161

162162
if (npyarr->dec->curdim <= 0)
@@ -289,7 +289,7 @@ int Object_npyArrayAddItem(JSOBJ obj, JSOBJ value)
289289
PyErr_NoMemory();
290290
goto fail;
291291
}
292-
((char*)PyArray_DATA(npyarr->ret)) = new_data;
292+
PyArray_BYTES(npyarr->ret) = new_data;
293293
}
294294

295295
PyArray_DIMS(npyarr->ret)[0] = i + 1;

0 commit comments

Comments
 (0)