1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Follow up the RString change [ci skip]

Since 46b66eb9e8, already `ary` has
been enclosed in `embed`.
This commit is contained in:
Nobuyoshi Nakada 2021-10-28 08:58:59 +09:00
parent 30942c19c0
commit b74bf8dd88
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -190,9 +190,8 @@ def string2cstr(rstring):
cptr = int(rstring.GetValueForExpressionPath(".as.heap.ptr").value, 0)
clen = int(rstring.GetValueForExpressionPath(".as.heap.len").value, 0)
else:
# cptr = int(rstring.GetValueForExpressionPath(".as.embed.ary").location, 0)
cptr = int(rstring.GetValueForExpressionPath(".as.embed.ary").location, 0)
# clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
cptr = int(rstring.GetValueForExpressionPath(".as.ary").location, 0)
clen = (flags & RSTRING_EMBED_LEN_MASK) >> RSTRING_EMBED_LEN_SHIFT
return cptr, clen