Skip to content

Commit 119360d

Browse files
authored
BUG: objToJson.c - fix return value (#31482)
1 parent 36f7e22 commit 119360d

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
@@ -128,7 +128,7 @@ ExtensionArray
128128

129129
Other
130130
^^^^^
131-
-
131+
- Regression fixed in objTOJSON.c fix return-type warning (:issue:`31463`)
132132
-
133133

134134
.. ---------------------------------------------------------------------------

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

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

178178
/* Initialise numpy API */
179179
import_array();
180+
// GH 31463
181+
return NULL;
180182
}
181183

182184
static TypeContext *createTypeContext(void) {

0 commit comments

Comments
 (0)