array.v: make _push private

pull/817/head
Alexander Medvednikov 2019-06-29 23:56:55 +02:00
parent 159990132f
commit d0c47f3f2a
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ pub fn (a mut array) set(idx int, val voidptr) {
C.memcpy(a.data + a.element_size * idx, val, a.element_size)
}
pub fn (arr mut array) _push(val voidptr) {
fn (arr mut array) _push(val voidptr) {
if arr.len >= arr.cap - 1 {
cap := (arr.len + 1) * 2
// println('_push: realloc, new cap=$cap')