another fix for long long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
57da015302
commit
0015c8417e
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ SWIGSTATICINLINE(int)
|
||||||
SWIGSTATICINLINE(PyObject* )
|
SWIGSTATICINLINE(PyObject* )
|
||||||
SWIG_From_meth(long long)(long long value)
|
SWIG_From_meth(long long)(long long value)
|
||||||
{
|
{
|
||||||
return (value > LONG_MAX) ?
|
return ((value < LONG_MIN) || (value > LONG_MAX)) ?
|
||||||
PyLong_FromLongLong(value)
|
PyLong_FromLongLong(value)
|
||||||
: PyInt_FromLong(swig_numeric_cast(value,long));
|
: PyInt_FromLong(swig_numeric_cast(value,long));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue