File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -463,19 +463,19 @@ get_capi_types(PyObject *self, PyObject *args)
463463 if (dict == NULL ) {
464464 return NULL ;
465465 }
466- if (PyDict_SetItemString (dict , "date" , PyDateTimeAPI -> DateType ) < 0 ) {
466+ if (PyDict_SetItemString (dict , "date" , ( PyObject * ) PyDateTimeAPI -> DateType ) < 0 ) {
467467 goto error ;
468468 }
469- if (PyDict_SetItemString (dict , "time" , PyDateTimeAPI -> TimeType ) < 0 ) {
469+ if (PyDict_SetItemString (dict , "time" , ( PyObject * ) PyDateTimeAPI -> TimeType ) < 0 ) {
470470 goto error ;
471471 }
472- if (PyDict_SetItemString (dict , "datetime" , PyDateTimeAPI -> DateTimeType ) < 0 ) {
472+ if (PyDict_SetItemString (dict , "datetime" , ( PyObject * ) PyDateTimeAPI -> DateTimeType ) < 0 ) {
473473 goto error ;
474474 }
475- if (PyDict_SetItemString (dict , "timedelta" , PyDateTimeAPI -> DeltaType ) < 0 ) {
475+ if (PyDict_SetItemString (dict , "timedelta" , ( PyObject * ) PyDateTimeAPI -> DeltaType ) < 0 ) {
476476 goto error ;
477477 }
478- if (PyDict_SetItemString (dict , "tzinfo" , PyDateTimeAPI -> TZInfoType ) < 0 ) {
478+ if (PyDict_SetItemString (dict , "tzinfo" , ( PyObject * ) PyDateTimeAPI -> TZInfoType ) < 0 ) {
479479 goto error ;
480480 }
481481 return dict ;
You can’t perform that action at this time.
0 commit comments