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

modified some functions

This commit is contained in:
ser1zw 2011-07-02 13:42:44 +09:00
parent 76289fa9ea
commit ecca9a0d66
2 changed files with 10 additions and 6 deletions

View file

@ -113,7 +113,8 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
if (rb_compatible_q(rb_klass, obj)) {
CVPOINT(self)->x = NUM2INT(rb_funcall(rb_funcall(obj, rb_intern("x"), 0), rb_intern("to_i"), 0));
CVPOINT(self)->y = NUM2INT(rb_funcall(rb_funcall(obj, rb_intern("y"), 0), rb_intern("to_i"), 0));
}else{
}
else {
rb_raise(rb_eArgError, "object is not compatible %s.", rb_class2name(rb_klass));
}
break;