Skip to content

Commit 5062d85

Browse files
alimcmaster1meeseeksmachine
authored andcommitted
Backport PR pandas-dev#31482: BUG: objToJson.c - fix return value
1 parent 4082c46 commit 5062d85

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)