File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ macro_rules! gen_component_wise_extractor {
97
97
. and_then( |comps| Ok ( handler( comps) ?. into( ) ) ) ,
98
98
) +
99
99
& Expression :: Compose { ty, ref components } => match & eval. types[ ty] . inner {
100
- & TypeInner :: Vector { size: _ , scalar } => match scalar. kind {
100
+ & TypeInner :: Vector { size, scalar } => match scalar. kind {
101
101
$( ScalarKind :: $scalar_kind) |* => {
102
102
let first_ty = ty;
103
103
let mut component_groups =
@@ -132,7 +132,7 @@ macro_rules! gen_component_wise_extractor {
132
132
let component_groups = component_groups. into_inner( ) . unwrap( ) ;
133
133
let mut new_components =
134
134
ArrayVec :: <_, { crate :: VectorSize :: MAX } >:: new( ) ;
135
- for idx in 0 ..N {
135
+ for idx in 0 ..( size as u8 ) . into ( ) {
136
136
let group = component_groups
137
137
. iter( )
138
138
. map( |cs| cs[ idx] )
You can’t perform that action at this time.
0 commit comments