fix #1199
This commit is contained in:
parent
a9731251a4
commit
7d2dbe3670
1 changed files with 2 additions and 0 deletions
|
|
@ -235,6 +235,8 @@ SWIGRUNTIMEINLINE char *
|
|||
SWIG_Ruby_MangleStr(VALUE obj)
|
||||
{
|
||||
VALUE stype = rb_iv_get(obj, "@__swigtype__");
|
||||
if (NIL_P(stype))
|
||||
return NULL;
|
||||
return StringValuePtr(stype);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue