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

tested CvSeq and fixed it's bugs

This commit is contained in:
ser1zw 2011-02-06 20:12:58 +09:00
parent f015503f03
commit 4fccb2ea28
4 changed files with 290 additions and 96 deletions

View file

@ -165,6 +165,10 @@ extern "C"{
#define RSTRING_PTR(arg) (RSTRING(arg)->ptr)
#endif
#ifndef DBL2NUM
#define DBL2NUM(dbl) (rb_float_new(dbl))
#endif
// OpenCV module
__NAMESPACE_BEGIN_OPENCV
@ -204,7 +208,7 @@ IPLCONVKERNEL_OBJECT(VALUE klass, void *ptr)
inline VALUE
GENERIC_OBJECT(VALUE klass, void *ptr)
{
return Data_Wrap_Struct(klass, 0, 0, ptr);
return Data_Wrap_Struct(klass, 0, -1, ptr);
}
inline VALUE