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

builtin: fix C++ compilation

This commit is contained in:
Alexander Medvednikov 2021-04-07 15:25:45 +03:00
parent 4e6a176f42
commit 66d3917554

View File

@ -1640,8 +1640,8 @@ pub fn (a []string) join(del string) string {
len -= del.len
// Allocate enough memory
mut res := string{
len: len
str: unsafe { malloc(len + 1) }
len: len
}
mut idx := 0
// Go thru every string and copy its every char one by one