From 314519cc64e13adda54584cc488e53294b6755a4 Mon Sep 17 00:00:00 2001 From: ser1zw Date: Tue, 1 May 2012 00:34:18 +0900 Subject: [PATCH] replace INT2FIX to INT2NUM in CvRect --- ext/opencv/cvrect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/opencv/cvrect.cpp b/ext/opencv/cvrect.cpp index 9db1a5f..9dfc106 100644 --- a/ext/opencv/cvrect.cpp +++ b/ext/opencv/cvrect.cpp @@ -167,7 +167,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self) VALUE 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 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 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 rb_height(VALUE self) { - return INT2FIX(CVRECT(self)->height); + return INT2NUM(CVRECT(self)->height); } /*