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

checker: error on ternary if type mismatch

This commit is contained in:
Henrixounez
2020-04-30 09:32:29 +02:00
committed by GitHub
parent 54d1a29267
commit f6d74c8a37
4 changed files with 23 additions and 1 deletions

View File

@@ -157,7 +157,7 @@ fn (d mut DenseArray) zeros_to_end() {
}
d.deletes = 0
d.size = count
d.cap = if count < 8 { 8 } else { count }
d.cap = if count < 8 { u32(8) } else { count }
d.data = &KeyValue(C.realloc(d.data, sizeof(KeyValue) * d.cap))
}