summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-08-27 16:21:36 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-08-27 16:21:36 +0200
commit543ec96bcc15ff79bc15761d64aec6b8e3bdde5c (patch)
tree8a36a1fe8b824f3e32820a45d5634ce57c6947fd /src/plugins/scripts/python
parent712623547f7e6fffc1bda625399ac54de87b6e2d (diff)
downloadweechat-543ec96bcc15ff79bc15761d64aec6b8e3bdde5c.zip
Fix compilation error and warning with Python 2.5
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c4
1 files changed, 3 insertions, 1 deletions
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;
}