Ruby complex was broken for one of its constructors.

Fixed.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-05-16 21:24:41 +00:00
commit 50c035fb07

View file

@ -43,7 +43,7 @@ SWIG_From(Type)(%ifcplusplus(const Type&, Type) c)
rb_float_new(Real(c)),
rb_float_new(Imag(c))
};
return rb_class_new_instance(2, args, rb_cComplex);
return rb_class_new_instance(2, args, swig_rb_cComplex);
}
}
%enddef