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:
parent
9f34fea606
commit
57f484fdd6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user