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:
parent
4e6a176f42
commit
66d3917554
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user