Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1c6a577

Browse files
committedFeb 25, 2025·
Revert "Fix addr space word size encoding"
This reverts commit f638f9d. The bug that f638f9d had fixed was fixed differently upstream: the decoder was adjusted to read a signed integer in 5604178194cb55ddb8526f843466d485ed8a36e6. Reverting this patch to be consistent with upstream.
1 parent e333b4b commit 1c6a577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pypcode/sleigh/sleighbase.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void SleighBase::encodeSlaSpace(Encoder &encoder,AddrSpace *spc) const
199199
// encoder.writeSignedInteger(sla::ATTRIB_DEADCODEDELAY, spc->getDeadcodeDelay());
200200
encoder.writeSignedInteger(sla::ATTRIB_SIZE, spc->getAddrSize());
201201
if (spc->getWordSize() > 1)
202-
encoder.writeUnsignedInteger(sla::ATTRIB_WORDSIZE, spc->getWordSize());
202+
encoder.writeSignedInteger(sla::ATTRIB_WORDSIZE, spc->getWordSize());
203203
encoder.writeBool(sla::ATTRIB_PHYSICAL, spc->hasPhysical());
204204
if (spc->getType() == IPTR_INTERNAL)
205205
encoder.closeElement(sla::ELEM_SPACE_UNIQUE);

0 commit comments

Comments
 (0)
Please sign in to comment.