Fixed compiling problem RSTRING(val)->ptr