Skip to content

Commit 69301b5

Browse files
committed
fixup! Implement Date#deconstruct_keys and DateTime#deconstruct_keys
1 parent 98e330f commit 69301b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/date/date_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7444,7 +7444,7 @@ deconstruct_keys(VALUE self, VALUE keys, int is_datetime) {
74447444
get_d1(self);
74457445

74467446
if (NIL_P(keys)) {
7447-
h = rb_hash_new_capa(5);
7447+
h = rb_hash_new();
74487448

74497449
rb_hash_aset(h, sym_year, m_real_year(dat));
74507450
rb_hash_aset(h, sym_month, INT2FIX(m_mon(dat)));
@@ -7468,7 +7468,7 @@ deconstruct_keys(VALUE self, VALUE keys, int is_datetime) {
74687468

74697469
}
74707470

7471-
h = rb_hash_new_capa(RARRAY_LEN(keys));
7471+
h = rb_hash_new();
74727472

74737473
for (i=0; i<RARRAY_LEN(keys); i++) {
74747474
VALUE key = RARRAY_AREF(keys, i);

0 commit comments

Comments
 (0)