Skip to content

Commit

Permalink
use rb_hash_new
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed May 6, 2024
1 parent 9b2078c commit e15093f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/datadog_cov/datadog_cov.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static VALUE dd_cov_stop(VALUE self)
struct dd_cov_data *dd_cov_data;
TypedData_Get_Struct(self, struct dd_cov_data, &dd_cov_data_type, dd_cov_data);

VALUE res = rb_hash_new_capa(dd_cov_data->coverage->num_entries);
VALUE res = rb_hash_new(dd_cov_data->coverage->num_entries);
st_foreach(dd_cov_data->coverage, insert_into_result, res);

// st_foreach(dd_cov_data->covered_files, free_hashtable_keys, 0);
Expand Down

0 comments on commit e15093f

Please sign in to comment.