Changed return type of swig_this() to size_t.
The type long may be 4 bytes but swig_this() must return the address of the object as an integer. Using size_t ensures that the return type can store a pointer.
This commit is contained in:
parent
e7d0533a6f
commit
a2d9a24f4d
1 changed files with 3 additions and 3 deletions
|
|
@ -507,10 +507,10 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own);
|
|||
delete this;
|
||||
}
|
||||
|
||||
long swig_this() const {
|
||||
size_t swig_this() const {
|
||||
if (!types.size())
|
||||
return (long) this;
|
||||
return (long) types[0].second.ptr;
|
||||
return (size_t) this;
|
||||
return (size_t) types[0].second.ptr;
|
||||
}
|
||||
const char* help_text() const {
|
||||
if (!types.size())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue