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

implemented rb_cvCreateMemStorage and replaced cvCreateMemStorage with rb_cvCreateMemStorage to create CvMemStorage as much as possible

This commit is contained in:
ser1zw 2011-04-28 00:36:34 +09:00
parent d9a7960949
commit 1ca99720c5
6 changed files with 36 additions and 6 deletions

View file

@ -145,7 +145,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
storage = CVMEMSTORAGE(storage_value);
}
else
storage = cvCreateMemStorage(0);
storage = rb_cvCreateMemStorage(0);
if(!rb_obj_is_kind_of(klass, rb_cClass))
rb_raise(rb_eTypeError, "argument 1 (sequence-block class) should be %s.", rb_class2name(rb_cClass));