10000 Revert "Revert "Use isize instead of usize for correctness."" · RustPython/RustPython@60fc31d · GitHub
[go: up one dir, main page]

Skip to content

Commit 60fc31d

Browse files
author
philippeitis
committed
Revert "Revert "Use isize instead of usize for correctness.""
This reverts commit 036ba6e.
1 parent 036ba6e commit 60fc31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub struct VirtualMachine {
7373
}
7474

7575
pub const NSIG: usize = 64;
76-
pub const MAX_MEMORY_SIZE: usize = (std::usize::MAX >> 3) + 1;
76+
pub const MAX_MEMORY_SIZE: usize = ((std::isize::MAX >> 3) + 1) as usize;
7777

7878
#[derive(Copy, Clone)]
7979
pub enum InitParameter {

0 commit comments

Comments
 (0)
0