Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change MAX_MEMORY_SIZE to handle systems with different pointer widths.
  • Loading branch information
philippeitis authored Feb 27, 2020
commit 01a9e579ecd0bfcf2b3114c9fe407080229c19ab
2 changes: 1 addition & 1 deletion vm/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub struct VirtualMachine {
}

pub const NSIG: usize = 64;
pub const MAX_MEMORY_SIZE: usize = 0x2000_0000_0000_0000;
pub const MAX_MEMORY_SIZE: usize = (std::usize::MAX >> 3)+1;

#[derive(Copy, Clone)]
pub enum InitParameter {
Expand Down