cgen: fix cgen removing random chars from parameter_name (#13038)

pull/13040/head
Tim Basel 2022-01-05 12:06:06 +01:00 committed by GitHub
parent d3489d4246
commit 897bbb7da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6742,7 +6742,7 @@ static inline __shared__$interface_name ${shared_fn_name}(__shared__$cctype* x)
mut parameter_name := g.out.cut_last(g.out.len - params_start_pos) mut parameter_name := g.out.cut_last(g.out.len - params_start_pos)
if st.is_ptr() { if st.is_ptr() {
parameter_name = parameter_name.trim_left('__shared__') parameter_name = parameter_name.trim_string_left('__shared__')
} }
methods_wrapper.write_string(parameter_name) methods_wrapper.write_string(parameter_name)