зеркало из https://github.com/github/ruby.git
* st.c (st_clear): reset num_entries too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2b1cbac0ed
Коммит
1ad3f7f582
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Aug 21 15:00:23 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* st.c (st_clear): reset num_entries too.
|
||||||
|
|
||||||
Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* hash.c (st_foreach_func, rb_foreach_func): typedefed.
|
* hash.c (st_foreach_func, rb_foreach_func): typedefed.
|
||||||
|
|
1
st.c
1
st.c
|
@ -214,6 +214,7 @@ st_clear(st_table *table)
|
||||||
ptr = next;
|
ptr = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
table->num_entries = 0;
|
||||||
table->head = 0;
|
table->head = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче