From 543ec96bcc15ff79bc15761d64aec6b8e3bdde5c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 27 Aug 2010 16:21:36 +0200 Subject: [PATCH] Fix compilation error and warning with Python 2.5 --- src/plugins/scripts/python/weechat-python-api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c index 058b449a2..6a20339eb 100644 --- a/src/plugins/scripts/python/weechat-python-api.c +++ b/src/plugins/scripts/python/weechat-python-api.c @@ -4100,7 +4100,9 @@ weechat_python_api_hook_info_hashtable_cb (void *data, const char *info_name, "ssO", python_argv); if (python_argv[2]) - Py_XDECREF(python_argv[2]); + { + Py_XDECREF((PyObject *)python_argv[2]); + } return ret_hashtable; }