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

replace INT2FIX to INT2NUM in CvRect

This commit is contained in:
ser1zw 2012-05-01 00:34:18 +09:00
parent 301d428e07
commit 314519cc64

View file

@ -167,7 +167,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
VALUE VALUE
rb_x(VALUE self) rb_x(VALUE self)
{ {
return INT2FIX(CVRECT(self)->x); return INT2NUM(CVRECT(self)->x);
} }
/* /*
@ -190,7 +190,7 @@ rb_set_x(VALUE self, VALUE x)
VALUE VALUE
rb_y(VALUE self) rb_y(VALUE self)
{ {
return INT2FIX(CVRECT(self)->y); return INT2NUM(CVRECT(self)->y);
} }
/* /*
@ -213,7 +213,7 @@ rb_set_y(VALUE self, VALUE y)
VALUE VALUE
rb_width(VALUE self) rb_width(VALUE self)
{ {
return INT2FIX(CVRECT(self)->width); return INT2NUM(CVRECT(self)->width);
} }
/* /*
@ -236,7 +236,7 @@ rb_set_width(VALUE self, VALUE x)
VALUE VALUE
rb_height(VALUE self) rb_height(VALUE self)
{ {
return INT2FIX(CVRECT(self)->height); return INT2NUM(CVRECT(self)->height);
} }
/* /*