Browse Source

map_insert and map_set return value inserted instead of whole map

master
mtardy 4 years ago
parent
commit
38128272b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      object.c

+ 2
- 2
object.c View File

@ -221,7 +221,7 @@ oop map_insert(oop map, oop key, oop value, size_t pos)
get(map, Map, elements)[pos].key = key;
set(map, Map, size, ++get(map, Map, size));
return map;
return value;
}
oop map_set(oop map, oop key, oop value)
@ -236,7 +236,7 @@ oop map_set(oop map, oop key, oop value)
pos = -1 - pos;
map_insert(map, key, value, pos);
}
return map;
return value;
}
oop map_del(oop map, oop key)

Loading…
Cancel
Save