fix seg. fault for void types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
00e438aaa7
commit
36b96882c5
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;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
*ptr = SWIG_TypeCast(tc, vptr);
|
*ptr = SWIG_TypeCast(tc, vptr);
|
||||||
|
} else {
|
||||||
|
*ptr = vptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
return SWIG_OK;
|
return SWIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue