Skip to content
1 change: 1 addition & 0 deletions crates/vm/src/builtins/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ fn try_int_radix(obj: &PyObject, base: u32, vm: &VirtualMachine) -> PyResult<Big
}

// Retrieve inner int value:
#[cfg(any(test, feature = "serde", feature = "jit"))]
pub(crate) fn get_value(obj: &PyObject) -> &BigInt {
obj.downcast_ref::<PyInt>().unwrap().as_bigint()
}
Expand Down
Loading
Loading