mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update vm/src/obj/objint.rs
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com>
This commit is contained in:
@@ -576,7 +576,7 @@ impl PyInt {
|
||||
|
||||
#[pymethod(name = "__sizeof__")]
|
||||
fn sizeof(&self, _vm: &VirtualMachine) -> usize {
|
||||
(size_of::<Self>() + ((self.value.bits() + 7) & !7)) / 8
|
||||
size_of::<Self>() + ((self.value.bits() + 7) & !7) / 8)
|
||||
}
|
||||
|
||||
#[pymethod]
|
||||
|
||||
Reference in New Issue
Block a user