summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-11-18 22:24:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-11-18 22:24:55 (GMT)
commit7c1f85b8197cb02634d06d200f68ce65e9eca717 (patch)
treea70ed11f36e39b9643ad2977935b10f62cd57852 /plugins/pychrysalide/glibext
parentea090774bf3b5849422de9af8c294b3e9d00105b (diff)
Removed useless casts in the Python bindings code.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r--plugins/pychrysalide/glibext/buffercache.c2
-rw-r--r--plugins/pychrysalide/glibext/loadedpanel.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/glibext/buffercache.c b/plugins/pychrysalide/glibext/buffercache.c
index b01b68c..8818f5e 100644
--- a/plugins/pychrysalide/glibext/buffercache.c
+++ b/plugins/pychrysalide/glibext/buffercache.c
@@ -104,7 +104,7 @@ PyTypeObject *get_python_buffer_cache_type(void)
static PyMethodDef py_buffer_cache_methods[] = {
#if 0
{
- "find_line_by_addr", (PyCFunction)py_buffer_cache_find_line_by_addr,
+ "find_line_by_addr", py_buffer_cache_find_line_by_addr,
METH_VARARGS,
"find_line_by_addr($self, addr, /)\n--\n\nFind a buffer line with a given address."
},
diff --git a/plugins/pychrysalide/glibext/loadedpanel.c b/plugins/pychrysalide/glibext/loadedpanel.c
index 44f7ce6..4dfb5c2 100644
--- a/plugins/pychrysalide/glibext/loadedpanel.c
+++ b/plugins/pychrysalide/glibext/loadedpanel.c
@@ -186,7 +186,7 @@ PyTypeObject *get_python_loaded_panel_type(void)
{
static PyMethodDef py_loaded_panel_methods[] = {
{
- "scroll_to_cursor", (PyCFunction)py_loaded_panel_scroll_to_cursor,
+ "scroll_to_cursor", py_loaded_panel_scroll_to_cursor,
METH_VARARGS,
"scroll_to_cursor($self, cursor, tweak, move, /)\n--\n\nEnsure a given address is displayed in the view panel."
},