Skip to content

Commit 12dc47f

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

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)