still nothing

This commit is contained in:
2026-04-17 15:00:47 +02:00
parent 7d39b21c98
commit 7ddd7707db
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ int main() {
int *ints; int *ints;
set_init(&ints, allocator, .initial_capacity=20); set_init(&ints, allocator, .initial_capacity=20);
map_print_mapping_state(ints, stdout); map_print_mapping_state(ints, stdout);
for ( int i = 0; i < 100; i++ ) { for ( int i = 0; i < 1000; i++ ) {
set_add(&ints, i); set_add(&ints, i);
map_print_mapping_state(ints, stdout); map_print_mapping_state(ints, stdout);
} }
+1 -1
View File
@@ -11,7 +11,7 @@ run_foobar: build_foobar
./{{FOOBAR}} ./{{FOOBAR}}
build_foobar: build_foobar:
{{CC}} ./foobar.c -o {{FOOBAR}} {{CC}} ./foobar.c -o {{FOOBAR}} {{CFLAGS}}
clean_foobar: clean_foobar:
rm {{FOOBAR}} rm {{FOOBAR}}
+1 -1
View File
@@ -201,7 +201,7 @@ index_pair_t map_pair_hash(void *this, void *pair) {
void map_assure_growable_by_1(void **this, const char *file, int line) { void map_assure_growable_by_1(void **this, const char *file, int line) {
map_header_t *header = PTR_FROM_FIELD_PTR(map_header_t, bytes, *this); map_header_t *header = PTR_FROM_FIELD_PTR(map_header_t, bytes, *this);
unsigned int new_n_items = header->n_items + 1; unsigned int new_n_items = header->n_items + 1;
if (new_n_items <= header->mapping_capacity) { if (new_n_items <= header->capacity) {
return; return;
} }