From 8bc79542f8f9c0d2fae117f000420d048f599202 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 26 Oct 2004 00:34:18 +0000 Subject: [PATCH] fix for proper %apply git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6513 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyvaltypes.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/python/pyvaltypes.swg b/Lib/python/pyvaltypes.swg index 4704641df..93570a9ba 100644 --- a/Lib/python/pyvaltypes.swg +++ b/Lib/python/pyvaltypes.swg @@ -23,10 +23,10 @@ %define PYVAL_OUT_TYPEMAP(from_meth,pyfrag,Type...) %typemap(out,fragment=pyfrag) Type, const Type - { $result = from_meth(SWIG_static_cast($1,$basetype)); } + { $result = from_meth(SWIG_static_cast($1,Type)); } %typemap(out,fragment=pyfrag) const Type& - { $result = from_meth(SWIG_static_cast(*$1,$basetype)); } + { $result = from_meth(SWIG_static_cast(*$1,Type)); } %enddef /* varin */