mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
For String Refs, inherit the type of the reffed string object.
This commit is contained in:
parent
93495c3bfb
commit
e623e9ac56
5 changed files with 4 additions and 7 deletions
|
|
@ -19,10 +19,8 @@ void PycString::load(PycData* stream, PycModule* mod)
|
|||
{
|
||||
if (type() == TYPE_STRINGREF) {
|
||||
PycRef<PycString> str = mod->getIntern(stream->get32());
|
||||
m_value.resize(str->length());
|
||||
|
||||
if (str->length())
|
||||
std::char_traits<char>::copy(&m_value.front(), str->value(), str->length());
|
||||
m_type = str->m_type;
|
||||
m_value = str->m_value;
|
||||
} else {
|
||||
int length;
|
||||
if (type() == TYPE_SHORT_ASCII || type() == TYPE_SHORT_ASCII_INTERNED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue