From 0b499cf3afa304db6f280372a62991cf46befbd2 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 30 Oct 2004 11:11:32 +0000 Subject: [PATCH] fix varout for SWIGTYPE, bug #1037259 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6564 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/ruby/rubyswigtype.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Lib/ruby/rubyswigtype.swg b/SWIG/Lib/ruby/rubyswigtype.swg index c52846e5e..46e1c2762 100644 --- a/SWIG/Lib/ruby/rubyswigtype.swg +++ b/SWIG/Lib/ruby/rubyswigtype.swg @@ -102,7 +102,7 @@ "$result = SWIG_NewPointerObj((void *) &$1, $1_descriptor,0);"; /* Copy by value */ -%typemap(varout) SWIGTYPE "$result = SWIG_NewPointerObj((void *) &$1, $&1_descriptor, 1);"; +%typemap(varout) SWIGTYPE "$result = SWIG_NewPointerObj((void *) &$1, $&1_descriptor, 0);"; /* Member pointer */ %typemap(varout) SWIGTYPE (CLASS::*) "$result = SWIG_NewPackedObj((void *) &$1, sizeof($1_type), $1_descriptor);";