Fix one casting warning on Linux (#787)
This commit is contained in:
parent
849f157efa
commit
0f48af8a05
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ SWIG_AsVal_dec(double)(PyObject *obj, double *val)
|
|||
return SWIG_OK;
|
||||
%#if PY_VERSION_HEX < 0x03000000
|
||||
} else if (PyInt_Check(obj)) {
|
||||
if (val) *val = PyInt_AsLong(obj);
|
||||
if (val) *val = (double) PyInt_AsLong(obj);
|
||||
return SWIG_OK;
|
||||
%#endif
|
||||
} else if (PyLong_Check(obj)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue