1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: notice unnecessary parenthesis of reference (fix #11179) (#13739)

This commit is contained in:
yuyi
2022-03-15 22:11:53 +08:00
committed by GitHub
parent 92cafd8851
commit 49155ec312
6 changed files with 116 additions and 5 deletions

View File

@ -660,7 +660,7 @@ pub fn str_intp(data_len int, in_data voidptr) string {
mut res := strings.new_builder(256)
input_base := &StrIntpData(in_data)
for i := 0; i < data_len; i++ {
data := unsafe { &(input_base[i]) }
data := unsafe { &input_base[i] }
// avoid empty strings
if data.str.len != 0 {
res.write_string(data.str)