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

tested and fixed PointSet

This commit is contained in:
ser1zw 2011-08-01 03:33:09 +09:00
parent 67845bc4cc
commit f8685c49c8
5 changed files with 219 additions and 48 deletions

View file

@ -147,7 +147,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
else
storage = rb_cvCreateMemStorage(0);
if(!rb_obj_is_kind_of(klass, rb_cClass))
if (!rb_obj_is_kind_of(klass, rb_cClass))
raise_typeerror(klass, rb_cClass);
int type = 0, size = 0;
@ -404,7 +404,7 @@ rb_pop(VALUE self)
if (seq->total == 0)
return Qnil;
VALUE object;
VALUE object = Qnil;
VALUE klass = seqblock_class(seq);
try {
if (klass == rb_cFixnum) {