Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Changed max operands number to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
iNemesis21 committed Aug 17, 2019
1 parent 2121b64 commit c3b922b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/purple_vm/src/code/validator.rs
Expand Up @@ -25,7 +25,7 @@ use primitives::control_flow::CfOperator;
use primitives::r#type::VmType;
use stack::Stack;

const MAX_OPERANDS: usize = 16;
const MAX_OPERANDS: usize = 8;

#[derive(Debug)]
enum Validity {
Expand Down Expand Up @@ -1855,7 +1855,7 @@ mod tests {
break;
}
}

assert!(!validator.valid());
}
}

0 comments on commit c3b922b

Please sign in to comment.