Skip to content

Commit

Permalink
fix OOB typifier indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored and jimblandy committed Oct 19, 2023
1 parent af26d77 commit 29ca531
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/front/wgsl/lower/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,7 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
crate::TypeInner::Scalar { kind, .. } => kind,
crate::TypeInner::Vector { kind, .. } => kind,
_ => {
ctx.grow_types(expr)?;
let ty = &ctx.typifier()[expr];
return Err(Error::BadTypeCast {
from_type: ctx.format_type_resolution(ty),
Expand Down

0 comments on commit 29ca531

Please sign in to comment.