bits -> bytes

This commit is contained in:
Asher Mancinelli
2019-10-16 14:10:20 -07:00
parent 6270344740
commit 8fff494926

View File

@@ -576,7 +576,7 @@ impl PyInt {
#[pymethod(name = "__sizeof__")]
fn sizeof(&self, _vm: &VirtualMachine) -> usize {
size_of::<Self>()
(size_of::<Self>() + (self.value.bits() + 7) & !7) / 8
}
#[pymethod]