Skip to content

Commit

Permalink
Fix size of array types
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Jul 21, 2023
1 parent 326b615 commit 8d49d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_evaluator/src/ssa_refactor/ir/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Value {
Value::Instruction { typ, .. } => typ.clone(),
Value::Param { typ, .. } => typ.clone(),
Value::NumericConstant { typ, .. } => typ.clone(),
Value::Array { element_type, array } => Type::Array(element_type.clone(), array.len()),
Value::Array { element_type, array } => Type::Array(element_type.clone(), array.len() / element_type.len()),
Value::Function { .. } => Type::Function,
Value::Intrinsic { .. } => Type::Function,
Value::ForeignFunction { .. } => Type::Function,
Expand Down

0 comments on commit 8d49d70

Please sign in to comment.