Attribute getters and setters have wrong arglists.
Bug #508567 reported by
yak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
Fix Released
|
Low
|
Unassigned |
Bug Description
The attribute getter and setter functions used in array pointed by tp_getset field of the type structure have incorrect prototypes. For instance attributes, they are missing the "void *closure" argument. For static attributes, they miss even more (getter has no args at all).
These functions have a fixed prototypes defined by the "getter" and "setter" typedefs, as can be seen here:
http://
Compiler misses this because the function pointers are cast to the mentioned typedefs.
Depending on a calling convention used by various compilers, this may or may not cause problems but it's definitely a bug.
Related branches
Changed in pybindgen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I am pretty sure in C language you can safely implement a function that takes fewer arguments than expected, regardless of compiler. But just to make you happy, I added the missing parameters...