fix lextype testcase when compiled as c++ as is the case with octave

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-08-16 19:40:29 +00:00
parent 26cc9252d9
commit db7ed25900
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ code is not functioning properly it will fail to compile.
%typemap(in) Animal () %typemap(in) Animal ()
{ {
void *space_needed = malloc(HEIGHT_$1_lextype * WIDTH_$1_lextype); void *space_needed = malloc(HEIGHT_$1_lextype * WIDTH_$1_lextype);
$1 = space_needed; $1 = ($1_ltype)space_needed;
} }
%typemap(in) Animal[2] () %typemap(in) Animal[2] ()
{ {
void *space_needed = malloc(2 * HEIGHT_$1_lextype * WIDTH_$1_lextype); void *space_needed = malloc(2 * HEIGHT_$1_lextype * WIDTH_$1_lextype);
$1 = space_needed; $1 = ($1_ltype)space_needed;
} }
%inline %{ %inline %{