This commit is contained in:
Viktor Gal 2020-02-01 11:25:30 +01:00
commit 7d2dbe3670

View file

@ -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);
}