From 4b828ef3584afd8a8e4afd615a8352807d41cd38 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/SWIG@5684 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/python.swg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/python/python.swg b/Lib/python/python.swg index 98173fae1..4e3963eec 100644 --- a/Lib/python/python.swg +++ b/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; }