mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
cgen: args fixes
This commit is contained in:
parent
aada19f574
commit
e0c85f87ae
9 changed files with 42 additions and 28 deletions
|
@ -178,7 +178,7 @@ fn (m SortedMap) exists(key string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
fn (n mapnode) find_key(k string) int {
|
||||
fn (n &mapnode) find_key(k string) int {
|
||||
mut idx := 0
|
||||
for idx < n.size && n.keys[idx] < k {
|
||||
idx++
|
||||
|
@ -353,7 +353,7 @@ pub fn (m mut SortedMap) delete(key string) {
|
|||
|
||||
// Insert all keys of the subtree into array `keys`
|
||||
// starting at `at`. Keys are inserted in order.
|
||||
fn (n mapnode) subkeys(keys mut []string, at int) int {
|
||||
fn (n &mapnode) subkeys(keys mut []string, at int) int {
|
||||
mut position := at
|
||||
if !isnil(n.children) {
|
||||
// Traverse children and insert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue