diff options
author | Steeve Morin <steeve.morin@gmail.com> | 2012-02-28 15:41:44 +0100 |
---|---|---|
committer | Steeve Morin <steeve.morin@gmail.com> | 2012-02-28 15:41:44 +0100 |
commit | a5bc6b73856ca9c59f140427a26a6ffd5103b86f (patch) | |
tree | 3542b7c7b01d2e0db51fccd46b43f401e7d46193 | |
parent | 31b7fda17b464176c34908da366bed5e4545823d (diff) | |
download | msgpack-python-a5bc6b73856ca9c59f140427a26a6ffd5103b86f.tar.gz |
Better prototypes.
-rw-r--r-- | msgpack/unpack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h index 6b443f2..2659a97 100644 --- a/msgpack/unpack.h +++ b/msgpack/unpack.h @@ -161,7 +161,7 @@ static inline int template_callback_array_end(unpack_user* u, msgpack_unpack_obj { if (u->list_hook) { PyObject *arglist = Py_BuildValue("(O)", *c); - msgpack_unpack_object *new_c = PyEval_CallObject(u->list_hook, arglist); + PyObject *new_c = PyEval_CallObject(u->list_hook, arglist); Py_DECREF(arglist); Py_DECREF(*c); *c = new_c; @@ -192,7 +192,7 @@ static inline int template_callback_map_end(unpack_user* u, msgpack_unpack_objec { if (u->object_hook) { PyObject *arglist = Py_BuildValue("(O)", *c); - msgpack_unpack_object *new_c = PyEval_CallObject(u->object_hook, arglist); + PyObject *new_c = PyEval_CallObject(u->object_hook, arglist); Py_DECREF(arglist); Py_DECREF(*c); *c = new_c; |