Skip to content

Commit 673e2f9

Browse files
Backport PR #31482: BUG: objToJson.c - fix return value (#31578)
Co-authored-by: alimcmaster1 <[email protected]>
1 parent 0f5cc15 commit 673e2f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v1.0.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ExtensionArray
126126

127127
Other
128128
^^^^^
129-
-
129+
- Regression fixed in objTOJSON.c fix return-type warning (:issue:`31463`)
130130
-
131131

132132
.. ---------------------------------------------------------------------------

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

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ void *initObjToJSON(void) {
178178

179179
/* Initialise numpy API */
180180
import_array();
181+
// GH 31463
182+
return NULL;
181183
}
182184

183185
static TypeContext *createTypeContext(void) {

0 commit comments

Comments
 (0)