mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
replace INT2FIX to INT2NUM in CvPoint
This commit is contained in:
parent
06a6cead2b
commit
301d428e07
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
|
|||
VALUE
|
||||
rb_x(VALUE self)
|
||||
{
|
||||
return INT2FIX(CVPOINT(self)->x);
|
||||
return INT2NUM(CVPOINT(self)->x);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -159,7 +159,7 @@ rb_set_x(VALUE self, VALUE x)
|
|||
VALUE
|
||||
rb_y(VALUE self)
|
||||
{
|
||||
return INT2FIX(CVPOINT(self)->y);
|
||||
return INT2NUM(CVPOINT(self)->y);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue