python: disambiguate SWIG_From_unsigned_SS_int and SWIG_From_unsigned_SS_long.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Stefan Zager 2012-05-23 04:05:11 +00:00
commit 00328ccdb3
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,16 @@ SWIGINTERNINLINE PyObject*
}
}
/* unsigned int */
%fragment(SWIG_From_frag(unsigned int),"header") {
SWIGINTERNINLINE PyObject*
SWIG_From_dec(unsigned int)(unsigned int value)
{
return PyInt_FromSize_t((size_t) value);
}
}
/* long */
%fragment(SWIG_From_frag(long),"header") {