From e4450c9ba7ec64ac67f0b39b137814768ee0946e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 24 Jan 2004 02:43:54 +0000 Subject: [PATCH] fix missed ANY temporal git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5684 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/python.swg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SWIG/Lib/python/python.swg b/SWIG/Lib/python/python.swg index 98173fae1..4e3963eec 100644 --- a/SWIG/Lib/python/python.swg +++ b/SWIG/Lib/python/python.swg @@ -113,10 +113,11 @@ if (PyErr_Occurred()) SWIG_fail; } -%typemap(in) char [ANY] -{ - SPyObj_AsCharArray($input, $1, $1_dim0); +%typemap(in) char [ANY] (char temp[$1_dim0]) +{ + SPyObj_AsCharArray($input, temp, $1_dim0); if (PyErr_Occurred()) SWIG_fail; + $1 = temp; }