Fix: Change type map length assert to check for greater than equals instead of equals to argument length

This commit is contained in:
microproofs
2023-08-29 21:59:15 -04:00
parent d01766d735
commit baa6917af5
2 changed files with 32 additions and 1 deletions

View File

@@ -951,7 +951,7 @@ impl<'a> CodeGenerator<'a> {
type_map.insert(index, field_type);
}
assert!(type_map.len() == arguments.len());
assert!(type_map.len() >= arguments.len());
let fields = arguments
.iter()