fix seg. fault for void types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8ee5690cea
commit
617346b91d
1 changed files with 3 additions and 0 deletions
|
|
@ -272,7 +272,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|||
return SWIG_ERROR;
|
||||
}
|
||||
*ptr = SWIG_TypeCast(tc, vptr);
|
||||
} else {
|
||||
*ptr = vptr;
|
||||
}
|
||||
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue