diff --git a/src/objects/num2.rs b/src/objects/num2.rs index d2129ea5..b32ea284 100644 --- a/src/objects/num2.rs +++ b/src/objects/num2.rs @@ -105,7 +105,7 @@ macro_rules! int_fits_larger_int( } } pyobject_extract!(obj to $rust_type => { - let val = try!(obj.extract::<$larger_type>()); + let val = try!($crate::ObjectProtocol::extract::<$larger_type>(obj)); match cast::<$larger_type, $rust_type>(val) { Some(v) => Ok(v), None => Err(exc::OverflowError.into())