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:
Markus Friedrich 2019-12-24 14:06:25 +01:00
commit a2d9a24f4d

View file

@ -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())