1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #1005 from Zokrates/fix-invalid-bitwidth

Fix invalid bitwidth set on select index
This commit is contained in:
Thibaut Schaeffer 2021-09-14 11:31:50 +02:00 committed by GitHub
commit 2b2ac26759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -462,7 +462,7 @@ impl<'ast, T: Field> ResultFolder<'ast, T> for ZirPropagator<'ast, T> {
.cloned()
.ok_or_else(|| Error::OutOfBounds(v, e.len() as u128))
.map(|e| e.into_inner()),
i => Ok(UExpressionInner::Select(e, box i.annotate(bitwidth))),
i => Ok(UExpressionInner::Select(e, box i.annotate(UBitwidth::B32))),
}
}
UExpressionInner::Add(box e1, box e2) => {