still nothing
This commit is contained in:
@@ -6,7 +6,7 @@ int main() {
|
||||
int *ints;
|
||||
set_init(&ints, allocator, .initial_capacity=20);
|
||||
map_print_mapping_state(ints, stdout);
|
||||
for ( int i = 0; i < 100; i++ ) {
|
||||
for ( int i = 0; i < 1000; i++ ) {
|
||||
set_add(&ints, i);
|
||||
map_print_mapping_state(ints, stdout);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ run_foobar: build_foobar
|
||||
./{{FOOBAR}}
|
||||
|
||||
build_foobar:
|
||||
{{CC}} ./foobar.c -o {{FOOBAR}}
|
||||
{{CC}} ./foobar.c -o {{FOOBAR}} {{CFLAGS}}
|
||||
|
||||
clean_foobar:
|
||||
rm {{FOOBAR}}
|
||||
|
||||
@@ -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) {
|
||||
map_header_t *header = PTR_FROM_FIELD_PTR(map_header_t, bytes, *this);
|
||||
unsigned int new_n_items = header->n_items + 1;
|
||||
if (new_n_items <= header->mapping_capacity) {
|
||||
if (new_n_items <= header->capacity) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user