Skip to content

Commit b81ae9f

Browse files
committed
pypy check
1 parent f6240ea commit b81ae9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn safe_repr(v: &PyAny) -> Cow<str> {
101101

102102
/// Extract an i64 from a python object more quickly, see
103103
/// https://github.com/PyO3/pyo3/pull/3742#discussion_r1451763928
104-
#[cfg(not(any(target_pointer_width = "32", target_os = "windows")))]
104+
#[cfg(not(any(target_pointer_width = "32", windows, PyPy)))]
105105
pub fn extract_i64(obj: &PyAny) -> Option<i64> {
106106
let val = unsafe { ffi::PyLong_AsLong(obj.as_ptr()) };
107107
if val == -1 && PyErr::occurred(obj.py()) {
@@ -112,7 +112,7 @@ pub fn extract_i64(obj: &PyAny) -> Option<i64> {
112112
}
113113
}
114114

115-
#[cfg(any(target_pointer_width = "32", target_os = "windows"))]
115+
#[cfg(any(target_pointer_width = "32", windows, PyPy))]
116116
pub fn extract_i64(v: &PyAny) -> Option<i64> {
117117
if v.is_instance_of::<pyo3::types::PyInt>() {
118118
v.extract().ok()

0 commit comments

Comments
 (0)