Fixed two test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bd35c8a679
commit
10af7694d7
2 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ namespace std {
|
|||
%extend {
|
||||
T *to_array() {
|
||||
T *array = new T[self->size() + 1];
|
||||
array[self->size()] = T();
|
||||
for( int i = 0; i < self->size(); i++ )
|
||||
array[i] = (*self)[i];
|
||||
return array;
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@
|
|||
temp = ($*1_ltype) MZ_TO_C($input);
|
||||
$1 = &temp;
|
||||
}
|
||||
%typemap(varin) C_NAME & {
|
||||
$1 = MZ_TO_C($input);
|
||||
}
|
||||
%typemap(outv) C_NAME {
|
||||
$1 = MZ_TO_C($input);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue