From bd6d9ef5a8bca3873e1e66218fd09ca787b8064e Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 3 Nov 2024 01:09:08 -0700 Subject: [PATCH] Fix clang incompatible function type error. --- src/message_receiver.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message_receiver.pyx b/src/message_receiver.pyx index 2cc020e9..964910f6 100644 --- a/src/message_receiver.pyx +++ b/src/message_receiver.pyx @@ -120,7 +120,7 @@ cdef class cMessageReceiver(StructBase): #### Callbacks (context is a MessageReceiver instance) -cdef void on_message_receiver_state_changed(void* context, c_message_receiver.MESSAGE_RECEIVER_STATE_TAG new_state, c_message_receiver.MESSAGE_RECEIVER_STATE_TAG previous_state) noexcept: +cdef void on_message_receiver_state_changed(const void* context, c_message_receiver.MESSAGE_RECEIVER_STATE_TAG new_state, c_message_receiver.MESSAGE_RECEIVER_STATE_TAG previous_state) noexcept: if context != NULL: context_pyobj = context if context_pyobj.ob_refcnt == 0: # context is being garbage collected, skip the callback