diff --git a/src/back/spv/writer.rs b/src/back/spv/writer.rs index b8e5091733..ccd47a87e6 100644 --- a/src/back/spv/writer.rs +++ b/src/back/spv/writer.rs @@ -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)); } diff --git a/src/proc/typifier.rs b/src/proc/typifier.rs index c8b0066cdf..d89c4e7099 100644 --- a/src/proc/typifier.rs +++ b/src/proc/typifier.rs @@ -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 {