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

Skip to content

Commit 036ba6e

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

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::isize::MAX >> 3) + 1) as usize;
76+
pub const MAX_MEMORY_SIZE: usize = (std::usize::MAX >> 3) + 1;
7777

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

0 commit comments

Comments
 (0)
0