mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-22 00:19:18 +00:00
Compare commits
2 Commits
324916b95f
...
ea4fd937bb
Author | SHA1 | Date | |
---|---|---|---|
|
ea4fd937bb | ||
|
4f75726251 |
@ -64,7 +64,7 @@ type is explicitly allowed.
|
|||||||
value.long_value = PyLong_AsLong(tmp);
|
value.long_value = PyLong_AsLong(tmp);
|
||||||
Py_DECREF(tmp);
|
Py_DECREF(tmp);
|
||||||
/* Ensure return code was OK (to avoid out-of-range errors etc) */
|
/* Ensure return code was OK (to avoid out-of-range errors etc) */
|
||||||
return !(value.long_value == -1 && !PyErr_Occurred());
|
return !(value.long_value == -1 && PyErr_Occurred());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user