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

interface: fix function is private bug

This commit is contained in:
Alexander Medvednikov
2019-07-04 23:28:39 +02:00
parent 60c4d99407
commit 74dbb1bce3
2 changed files with 2 additions and 1 deletions

View File

@ -172,6 +172,7 @@ fn (arr mut array) _push(val voidptr) {
}
// `val` is array.data
// TODO make private, right now it's used by strings.Builder
pub fn (arr mut array) _push_many(val voidptr, size int) {
if arr.len >= arr.cap - size {
cap := (arr.len + size) * 2