Skip to content

Commit c6e6df6

Browse files
committed
Add GET_TC
1 parent 25e7e84 commit c6e6df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/src/vendored/ujson/python/objToJSON.c

+2
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ static const char *PyNpyDtypesToUTF8Callback(JSOBJ _obj, JSONTypeContext *tc,
407407
return NULL;
408408
}
409409

410+
GET_TC(tc)->newObj = str;
411+
410412
Py_ssize_t s_len;
411413
char *outValue = (char *)PyUnicode_AsUTF8AndSize(str, &s_len);
412414
*len = s_len;

0 commit comments

Comments
 (0)