Skip to content

Commit 5e38f62

Browse files
committed
py/map: use MP_ERROR_TEXT for mp_map_presize error message
1 parent b989de6 commit 5e38f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ STATIC void mp_map_rehash(mp_map_t *map) {
137137
void mp_map_presize(mp_map_t *map, size_t new_alloc) {
138138
size_t old_alloc = map->alloc;
139139
if (new_alloc < old_alloc) {
140-
mp_raise_msg_varg(&mp_type_ValueError, "Map capacity (" UINT_FMT ") must not decrease: " UINT_FMT, old_alloc, new_alloc);
140+
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("Map capacity (%d) must not decrease: %d"), old_alloc, new_alloc);
141141
}
142142
mp_map_elem_t *old_table = map->table;
143143
mp_map_elem_t *new_table = m_new0(mp_map_elem_t, new_alloc);

0 commit comments

Comments
 (0)