1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

replace rb_hash_aref to rb_hash_lookup (or LOOKUP_HASH)

This commit is contained in:
ser1zw 2013-01-20 02:37:19 +09:00
parent 79f0bef6b3
commit 6331e8dc53
4 changed files with 13 additions and 13 deletions

View file

@ -264,7 +264,7 @@ CVMETHOD(const char *name, VALUE method, int ifnone = 0)
case T_STRING:
method = rb_str_intern(method);
case T_SYMBOL:
value = rb_hash_aref(rb_const_get(rb_module_opencv(), rb_intern(name)), method);
value = rb_hash_lookup(rb_const_get(rb_module_opencv(), rb_intern(name)), method);
return NIL_P(value) ? ifnone : FIX2INT(value);
default:
raise_typeerror(method, rb_cSymbol);