Fixed to array typemaps (memberin, globalin).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-05-29 18:27:28 +00:00
commit 1a7caba8b5

View file

@ -188,13 +188,13 @@ namespace std {
/* memberin typemap for arrays. */
%typemap(memberin) SWIGTYPE [] {
%typemap(memberin) SWIGTYPE [ANY] {
int ii;
$1_basetype *b = ($1_basetype *) $1;
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);
}
%typemap(globalin) SWIGTYPE [] {
%typemap(globalin) SWIGTYPE [ANY] {
int ii;
$1_basetype *b = ($1_basetype *) $1;
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);