From 2459d8f0c81ecd58a30dc7862a14ef5f7e72e8f8 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 29 May 2015 10:26:28 +0200 Subject: [PATCH] Fix #[cfg] condition for i64 on windows --- src/objects/num.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/num.rs b/src/objects/num.rs index 638cb407..1a73f2ff 100644 --- a/src/objects/num.rs +++ b/src/objects/num.rs @@ -241,7 +241,7 @@ int_fits_larger_int!(u32, u64); int_fits_c_long!(i64); // manual implementation for i64 on systems with 32-bit long -#[cfg(all(target_pointer_width="32", not(target_os="windows")))] +#[cfg(any(target_pointer_width="32", target_os="windows"))] int_convert_u64_or_i64!(i64, ffi::PyLong_FromLongLong, ffi::PyLong_AsLongLong); #[cfg(all(target_pointer_width="64", not(target_os="windows")))]