1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-02-05 08:08:23 +08:00

Support 64-bit integers when converting from Python (Fixes #86)

This commit is contained in:
Thomas Perl 2017-10-14 11:55:00 +02:00
parent 9f34fea606
commit 57f484fdd6

View File

@ -171,7 +171,7 @@ class PyObjectConverter : public Converter<PyObject *> {
}
}
virtual long long integer(PyObject *&o) { return PyLong_AsLong(o); }
virtual long long integer(PyObject *&o) { return PyLong_AsLongLong(o); }
virtual double floating(PyObject *&o) { return PyFloat_AsDouble(o); }
virtual bool boolean(PyObject *&o) { return (o == Py_True); }
virtual const char *string(PyObject *&o) {