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

another map bug fix + fix some warnings

This commit is contained in:
Alexander Medvednikov
2019-07-31 10:46:00 +02:00
parent fa24a0cec5
commit ddb4f45b02
4 changed files with 9 additions and 9 deletions

View File

@ -143,11 +143,10 @@ fn (m map) bs(query string, start, end int, out voidptr) {
*/
fn (m mut map) preorder_keys(node &Node) {
if node.is_empty {
return
}
if !node.is_empty {
m._keys[m.key_i] = node.key
m.key_i++
}
if !isnil(node.left) {
m.preorder_keys(node.left)
}