compile fix

This commit is contained in:
Sylvester Hesp 2023-04-21 02:05:51 +02:00
parent 24f9137a6b
commit 19051b7a11

View File

@ -698,7 +698,7 @@ impl SampleImplRewriter {
fn add_regs(&self, t: &mut Vec<TokenTree>) {
for i in 0..SAMPLE_PARAM_COUNT {
if self.0 & (1 << i) != 0 {
let s = format!("{0} = in(reg) &param.{0},", SAMPLE_PARAM_NAMES[i]);
let s = format!("{0} = in(reg) &params.{0},", SAMPLE_PARAM_NAMES[i]);
let ts: proc_macro2::TokenStream = s.parse().unwrap();
t.extend(ts);
}