mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
replace INT2FIX to INT2NUM in CvSize
This commit is contained in:
parent
314519cc64
commit
c1e7f3ce62
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
|
||||||
VALUE
|
VALUE
|
||||||
rb_width(VALUE self)
|
rb_width(VALUE self)
|
||||||
{
|
{
|
||||||
return INT2FIX(CVSIZE(self)->width);
|
return INT2NUM(CVSIZE(self)->width);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -154,7 +154,7 @@ rb_set_width(VALUE self, VALUE x)
|
||||||
VALUE
|
VALUE
|
||||||
rb_height(VALUE self)
|
rb_height(VALUE self)
|
||||||
{
|
{
|
||||||
return INT2FIX(CVSIZE(self)->height);
|
return INT2NUM(CVSIZE(self)->height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue