Allow array_index to be unsigned (#2298)

This commit is contained in:
daxpedda authored and GitHub committed 2023-04-07 16:01:55 +02:00
1 parent 99a7773e65
commit f59668ccfa
20 files changed
+2336 -1429

No files matched your search

+1 -1
View File
@@ -758,7 +758,7 @@ impl super::Validator {
if let Some(expr) = array_index {
match *context.resolve_type(expr, &self.valid_expression_set)? {
Ti::Scalar {
kind: crate::ScalarKind::Sint,
kind: crate::ScalarKind::Sint | crate::ScalarKind::Uint,
width: _,
} => {}
_ => {