diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 10:39:39 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 10:39:39 +0000 |
commit | 302c311199c80ac9094dfa2b9781e6240f6a3092 (patch) | |
tree | a9036b0f7aa362e05dc1603d7c1598bf44dc309a /insnhelper.ci | |
parent | bc1e2ab306ada94a7169d5812dd8252743553102 (diff) | |
download | ruby-302c311199c80ac9094dfa2b9781e6240f6a3092.tar.gz |
* hash.c (rb_hash_lookup): added. this function is similar to
rb_hash_aref(), but doesn't call Hash#default when no entry
exists.
* include/ruby/intern.h: ditto.
* insnhelper.ci (lfp_svar_get): use rb_hash_lookup().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.ci')
-rw-r--r-- | insnhelper.ci | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/insnhelper.ci b/insnhelper.ci index 7df4ef8fa2..c3c44cba28 100644 --- a/insnhelper.ci +++ b/insnhelper.ci @@ -788,7 +788,7 @@ lfp_svar_get(rb_thread_t *th, VALUE *lfp, VALUE key) return Qnil; } else { - return rb_hash_aref(hash, key); + return rb_hash_lookup(hash, key); } } } |