mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
Fix regression on Ruby versions < 2.4
This commit is contained in:
parent
50cf19c356
commit
a87b774131
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ rb_insert(VALUE self, VALUE index, VALUE object)
|
|||
Check_Type(index, T_FIXNUM);
|
||||
CvSeq *seq = CVSEQ(self);
|
||||
VALUE klass = seqblock_class(seq);
|
||||
if (CLASS_OF(object) != klass)
|
||||
if (!rb_obj_is_kind_of(object, klass))
|
||||
rb_raise(rb_eTypeError, "arguments should be %s.", rb_class2name(klass));
|
||||
try {
|
||||
if (klass == rb_cInteger) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue