summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 15:30:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 15:30:36 +0000
commit5a52ce04593b5fd4638f51ea2913665f94dff7db (patch)
tree8d13be4fe0ae75016b082e2f3586d1368c34fa28
parent2ed666cbafff88bb736db034275e2689ceca30cd (diff)
downloadruby-5a52ce04593b5fd4638f51ea2913665f94dff7db.tar.gz
* st.c (st_init_table_with_size, ADD_DIRECT): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@19254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--st.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0df72245d6..86ea231ad0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Sep 9 00:30:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_init_table_with_size, ADD_DIRECT): fixed typo.
+
Mon Sep 8 20:10:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (power_cache_get_power0): no need to register address.
diff --git a/st.c b/st.c
index 8b8b97caa5..b90e8343a3 100644
--- a/st.c
+++ b/st.c
@@ -61,6 +61,7 @@ static const struct st_hash_type type_strcasehash = {
static void rehash(st_table *);
#ifdef RUBY
+int rb_garbage_collect(void);
#define garbage_collect() rb_garbage_collect()
#else
#define garbage_collect() 0
@@ -173,7 +174,7 @@ st_init_table_with_size(const struct st_hash_type *type, int size)
if (!tbl) {
nomem:
if (garbage_collect()) goto retry;
- retry 0;
+ return 0;
}
tbl->type = type;
tbl->num_entries = 0;
@@ -352,7 +353,7 @@ do {\
}\
\
entry = alloc(st_table_entry);\
- if (!entry) break;
+ if (!entry) break;\
\
entry->hash = hash_val;\
entry->key = key;\