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 CvPoint

This commit is contained in:
ser1zw 2012-05-01 00:32:49 +09:00
parent 06a6cead2b
commit 301d428e07

View file

@ -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);
}
/*