1 diff -ur a/decoder.c b/decoder.c
2 --- a/decoder.c 1980-01-02 00:00:00.000000000 -0500
3 +++ b/decoder.c 2023-11-08 17:42:43.981838074 -0500
5 return PlaceObject(ctx, PyBool_FromLong((long)(value)));
8 -static int handle_number(void *ctx, const char *value, unsigned int length)
9 +static int handle_number(void *ctx, const char *value, size_t length)
11 //fprintf(stderr, "handle_number: ");
12 //fwrite(value, length, 1, stderr);
17 -static int handle_string(void *ctx, const unsigned char *value, unsigned int length)
18 +static int handle_string(void *ctx, const unsigned char *value, size_t length)
20 return PlaceObject(ctx, PyString_FromStringAndSize((char *)value, length));
26 -static int handle_dict_key(void *ctx, const unsigned char *value, unsigned int length)
27 +static int handle_dict_key(void *ctx, const unsigned char *value, size_t length)
29 PyObject *object = PyString_FromStringAndSize((const char *) value, length);
31 diff -ur a/yajl.c b/yajl.c
32 --- a/yajl.c 1980-01-02 00:00:00.000000000 -0500
33 +++ b/yajl.c 2023-11-08 17:41:18.781350335 -0500
37 static struct PyMethodDef yajl_methods[] = {
38 - {"dumps", (PyCFunctionWithKeywords)(py_dumps), METH_VARARGS | METH_KEYWORDS,
39 + {"dumps", (PyCFunction)(py_dumps), METH_VARARGS | METH_KEYWORDS,
40 "yajl.dumps(obj [, indent=None])\n\n\
41 Returns an encoded JSON string of the specified `obj`\n\