Skip to content

Commit

Permalink
Fixed build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Dec 28, 2023
1 parent 4b213c6 commit 220d769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ CBOREncoder_init(CBOREncoderObject *self, PyObject *args, PyObject *kwargs)
PyObject *encode_date = PyObject_GetAttr((PyObject *) &CBOREncoderType, _CBOR2_str_encode_date);
if (!encode_date)
return -1;
PyObject *datetime_class = PyDateTimeAPI->DateType;
PyObject *datetime_class = (PyObject*)PyDateTimeAPI->DateType;
if (PyObject_SetItem(self->encoders, datetime_class, encode_date) == -1)
return -1;
Py_DECREF(encode_date);
Expand Down

0 comments on commit 220d769

Please sign in to comment.