Fix for Github #336: equates in 16-bit x86

This commit is contained in:
caheckman 2019-04-09 10:40:18 -04:00 committed by ghidravore
parent 59fb950c79
commit 83e4461b2a

View File

@ -118,8 +118,8 @@ public class DynamicHash {
reg = SimpleCRC32.hashOneByte(reg, slot);
reg = SimpleCRC32.hashOneByte(reg, transtable[op.getOpcode()]);
long val = op.getSeqnum().getTarget().getOffset();
int sz = op.getSeqnum().getTarget().getPointerSize();
for (int i = 0; i < sz; ++i) {
int sz = op.getSeqnum().getTarget().getSize();
for (int i = 0; i < sz; i += 8) {
reg = SimpleCRC32.hashOneByte(reg, (int) val);
val >>= 8;
}