From 301d428e07d6b421fed3b6d6171c2a8af3c29cdf Mon Sep 17 00:00:00 2001 From: ser1zw Date: Tue, 1 May 2012 00:32:49 +0900 Subject: [PATCH] replace INT2FIX to INT2NUM in CvPoint --- ext/opencv/cvpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/opencv/cvpoint.cpp b/ext/opencv/cvpoint.cpp index 9c01563..511c427 100644 --- a/ext/opencv/cvpoint.cpp +++ b/ext/opencv/cvpoint.cpp @@ -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); } /*