Skip to content

Commit

Permalink
Fix 'Int.__rmod__' magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Nov 19, 2024
1 parent a65abfc commit fcfaf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_binding/py_big_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ impl PyBigInt {

fn __rmod__(&self, dividend: &Bound<'_, PyAny>) -> PyResult<PyObject> {
let py = dividend.py();
if dividend.is_instance(&Self::type_object(py))? {
if dividend.is_instance(&PyInt::type_object(py))? {
try_mod(try_big_int_from_py_integral(dividend)?, &self.0).and_then(
|result| {
Ok(Self(result).into_pyobject(py)?.into_any().unbind())
Expand Down

0 comments on commit fcfaf32

Please sign in to comment.