From 50c035fb079d3e624b38b18e99c57e4f9d68b114 Mon Sep 17 00:00:00 2001 From: Gonzalo Garramuno Date: Wed, 16 May 2007 21:24:41 +0000 Subject: [PATCH] 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 --- Lib/ruby/rubycomplex.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ruby/rubycomplex.swg b/Lib/ruby/rubycomplex.swg index 222cf8499..400493543 100644 --- a/Lib/ruby/rubycomplex.swg +++ b/Lib/ruby/rubycomplex.swg @@ -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