mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Fix for marshalling negative PyLongs on 64-bit hosts. Closes #5
This commit is contained in:
parent
398551ed77
commit
df8db4da3c
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ void PycLong::load(PycData* stream, PycModule*)
|
|||
m_size = (hi & 0x80000000) != 0 ? -4 : 4;
|
||||
} else {
|
||||
m_size = stream->get32();
|
||||
int actualSize = m_size & 0x7FFFFFFF;
|
||||
int actualSize = m_size >= 0 ? m_size : -m_size;
|
||||
for (int i=0; i<actualSize; i++)
|
||||
m_value.push_back(stream->get16());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue