diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 15:30:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 15:30:36 +0000 |
commit | 5a52ce04593b5fd4638f51ea2913665f94dff7db (patch) | |
tree | 8d13be4fe0ae75016b082e2f3586d1368c34fa28 | |
parent | 2ed666cbafff88bb736db034275e2689ceca30cd (diff) | |
download | ruby-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-- | ChangeLog | 4 | ||||
-rw-r--r-- | st.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -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. @@ -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;\ |