Skip to content

Commit

Permalink
a :w
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Aug 21, 2023
1 parent ee3563f commit 06ee103
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/back/spv/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ impl Writer {
));

if self.flags.contains(WriterFlags::DEBUG) {
if let Some(ref name) = member_name {
if let Some(name) = member_name {
self.debugs
.push(Instruction::member_name(struct_id, index as u32, name));
}
Expand Down
14 changes: 8 additions & 6 deletions src/proc/typifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,14 @@ impl<'a> ResolveContext<'a> {
}
}
Ti::BindingArray { base, .. } => Ti::Pointer { base, space },
Ti::ModfResult if (0..=1).contains(&index) => Ti::ValuePointer {
size: None,
kind: crate::ScalarKind::Float,
width: 4,
space,
},
Ti::FrexpResult | Ti::ModfResult if (0..=1).contains(&index) => {
Ti::ValuePointer {
size: None,
kind: crate::ScalarKind::Float,
width: 4,
space,
}
}
ref other => {
log::error!("Access index sub-type {:?}", other);
return Err(ResolveError::InvalidSubAccess {
Expand Down

0 comments on commit 06ee103

Please sign in to comment.