Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion py/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ STATIC void mp_map_rehash(mp_map_t *map) {
void mp_map_presize(mp_map_t *map, size_t new_alloc) {
size_t old_alloc = map->alloc;
if (new_alloc < old_alloc) {
mp_raise_msg_varg(&mp_type_ValueError, "Map capacity (" UINT_FMT ") must not decrease: " UINT_FMT, old_alloc, new_alloc);
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("Map capacity (%d) must not decrease: %d"), old_alloc, new_alloc);
}
mp_map_elem_t *old_table = map->table;
mp_map_elem_t *new_table = m_new0(mp_map_elem_t, new_alloc);
Expand Down
Loading