From d59066471c54258a24654a4319f723eab663fabe Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Wed, 5 Jun 2024 17:09:59 +0200 Subject: [PATCH] Fix incorrect return type of raise_from() Fixes #236. --- source/decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/decoder.c b/source/decoder.c index 6fd74ce..bd7fa47 100644 --- a/source/decoder.c +++ b/source/decoder.c @@ -348,7 +348,7 @@ _CBORDecoder_get_immutable(CBORDecoderObject *self, void *closure) // Utility functions ///////////////////////////////////////////////////////// -static int +static void raise_from(PyObject *new_exc_type, const char *message) { // This requires the error indicator to be set PyObject *cause;