Restore changes for shadow warnings...

This commit is contained in:
Alex 2024-03-12 22:55:56 +02:00
commit fd80a359c7
7 changed files with 114 additions and 114 deletions

View file

@ -22,18 +22,18 @@ void PycString::load(PycData* stream, PycModule* mod)
m_type = str->m_type;
m_value = str->m_value;
} else {
int _length;
int length;
if (type() == TYPE_SHORT_ASCII || type() == TYPE_SHORT_ASCII_INTERNED)
_length = stream->getByte();
length = stream->getByte();
else
_length = stream->get32();
length = stream->get32();
if (_length < 0)
if (length < 0)
throw std::bad_alloc();
m_value.resize(_length);
if (_length) {
stream->getBuffer(_length, &m_value.front());
m_value.resize(length);
if (length) {
stream->getBuffer(length, &m_value.front());
if (type() == TYPE_ASCII || type() == TYPE_ASCII_INTERNED ||
type() == TYPE_SHORT_ASCII || type() == TYPE_SHORT_ASCII_INTERNED) {
if (!check_ascii(m_value))