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

more ui vh fixes

This commit is contained in:
Alexander Medvednikov
2019-11-01 16:10:28 +03:00
parent 59efd42483
commit 80ba8f07b8
3 changed files with 83 additions and 64 deletions

View File

@ -236,7 +236,6 @@ fn (a mut array) set(i int, val voidptr) {
C.memcpy(a.data + a.element_size * i, val, a.element_size)
}
// TODO push(val) is the same as push_many(val, 1), can be eliminated
fn (a mut array) push(val voidptr) {
a.ensure_cap(a.len + 1)
C.memcpy(a.data + a.element_size * a.len, val, a.element_size)