Slight tweak to output typemap for int
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
665b70e887
commit
3cb76bb45e
1 changed files with 10 additions and 0 deletions
|
|
@ -25,6 +25,16 @@ SWIG_AsVal_dec(bool)(PyObject *obj, bool *val)
|
|||
}
|
||||
}
|
||||
|
||||
/* int */
|
||||
|
||||
%fragment(SWIG_From_frag(int),"header") {
|
||||
SWIGINTERNINLINE PyObject*
|
||||
SWIG_From_dec(int)(int value)
|
||||
{
|
||||
return PyInt_FromLong((long) value);
|
||||
}
|
||||
}
|
||||
|
||||
/* long */
|
||||
|
||||
%fragment(SWIG_From_frag(long),"header") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue