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

This commit is contained in:
caheckman 2019-04-09 10:40:18 -04:00
parent 1dcba64533
commit 42c86346f1

View File

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