mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: print multiple errors; none
This commit is contained in:
@@ -148,7 +148,9 @@ fn (m map) get(key string, out voidptr) bool {
|
||||
mut node := m.root
|
||||
for {
|
||||
mut i := node.size - 1
|
||||
for i >= 0 && key < node.keys[i] { i-- }
|
||||
for i >= 0 && key < node.keys[i] {
|
||||
i--
|
||||
}
|
||||
if i != -1 && key == node.keys[i] {
|
||||
C.memcpy(out, node.values[i], m.value_bytes)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user