This commit is contained in:
Michael Droettboom 2018-10-02 16:12:24 -04:00
parent e0b37f4bf8
commit 1eb30ce4b3
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ _python2js(PyObject* x, PyObject* map)
// when the Python int gets too large. This will lose precision,
// but is less problematic than truncation.
if ((unsigned long)x_long > 0x7fffffff) {
PyObject *py_float = PyNumber_Float(x);
PyObject* py_float = PyNumber_Float(x);
if (py_float == NULL) {
return HW_ERROR;
}