Merge branch 'fix-1199'

* fix-1199:
  fix #1199
This commit is contained in:
William S Fulton 2020-06-07 10:29:55 +01:00
commit 938c3bbb54

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